feat: 导航列表添加返回当前编辑的项目
This commit is contained in:
@@ -4,13 +4,16 @@
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
<div class="show">
|
||||
<div v-show="openType === 'history'" class="function">
|
||||
<design :key="componentKey" ref="design"></design>
|
||||
</div>
|
||||
<router-view v-if="
|
||||
(openType && openType != 'history' && !routeQuery.id) ||
|
||||
$route.path != '/home'"
|
||||
@setTask="setTask"
|
||||
>
|
||||
</router-view>
|
||||
<div v-else-if="routeQuery.id || openType == 'history'" class="function">
|
||||
<div v-else-if="routeQuery.id" class="function">
|
||||
<design :key="componentKey" ref="design"></design>
|
||||
</div>
|
||||
<div v-else class="function">
|
||||
@@ -82,11 +85,11 @@ export default defineComponent({
|
||||
data.dataLoad = false
|
||||
return
|
||||
}
|
||||
// if((query.history || query.id) != (oldQuery.history || oldQuery.id)){
|
||||
// }
|
||||
if(query.history && query.history != query.history){
|
||||
|
||||
if(data.openType == 'history'){
|
||||
store.commit('setProjectPath',route.fullPath)
|
||||
}
|
||||
|
||||
nextTick(()=>{
|
||||
if(query.history || query.id){
|
||||
//切换新项目需要清除首次design提示
|
||||
|
||||
Reference in New Issue
Block a user