Commit a615b3ca authored by zhengke's avatar zhengke

优化编辑页面 返回工作台

parent 6b3ade45
......@@ -5,7 +5,7 @@
<Popover v-if="SalesEditor>0" trigger="click" placement="bottom-start" v-model:value="mainBackVisible">
<template #content>
<div class="menu-item" @click="goBack(1)">重选 {{searchData.TemplateType==2?'广告':'模版'}}</div>
<div class="menu-item" @click="goBack(0)">返回首页</div>
<div class="menu-item" @click="goBack(0)">返回工作台</div>
</template>
<div class="menu-item">
<el-icon color="#564bec"><ArrowLeftBold /></el-icon>
......@@ -244,12 +244,12 @@ const goBack = (type:any) =>{
if(model.value==0) {
path = `/market/op/${ConfigId.value}/${TempType.value}`
router.push({path})
}else if(model.value==2&&searchData.value.currentMenu>=0){
}else if(model.value==2){
if(type==1) path = `/market/create`
else {
else if(searchData.value.currentMenu>=0) {
path = `/space/${searchData.value.currentMenu}`
searchData.value.currentMenu = null
}
}else path = `/space`
router.push({path})
}
else window.history.back()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment