feat: 导航列表添加返回当前编辑的项目

This commit is contained in:
zhangyh
2025-10-23 13:51:29 +08:00
parent 569ffd2bf3
commit fe20ed1ad3
6 changed files with 2234 additions and 2006 deletions

View File

@@ -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提示