优化更新

This commit is contained in:
2026-01-23 22:05:09 +08:00
parent 8283555457
commit 0608f0febb
14 changed files with 667 additions and 622 deletions

View File

@@ -43,7 +43,7 @@
<a-layout-content class="app-main">
<router-view v-slot="{ Component }">
<keep-alive :include="cachedViews">
<component :is="Component" :key="$route.fullPath" />
<component :is="Component" :key="refreshKey" />
</keep-alive>
</router-view>
</a-layout-content>
@@ -100,7 +100,7 @@
<a-layout-content class="app-main top-content">
<router-view v-slot="{ Component }">
<keep-alive :include="cachedViews">
<component :is="Component" :key="$route.fullPath" />
<component :is="Component" :key="refreshKey" />
</keep-alive>
</router-view>
</a-layout-content>
@@ -163,6 +163,9 @@ const layoutClass = computed(() => {
}
})
// 获取刷新 key
const refreshKey = computed(() => layoutStore.refreshKey)
const openKeys = ref([])
const selectedKeys = ref([])
const menuList = computed(() => {