mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-10 18:58:37 +08:00
refactor: 刷新页面保留所有 tabs 页签
This commit is contained in:
@@ -51,7 +51,7 @@ const appStore = useAppStore()
|
|||||||
const tabsStore = useTabsStore()
|
const tabsStore = useTabsStore()
|
||||||
|
|
||||||
// 重置, 同时把 affix: true 的路由筛选出来
|
// 重置, 同时把 affix: true 的路由筛选出来
|
||||||
tabsStore.reset()
|
// tabsStore.reset()
|
||||||
|
|
||||||
// 监听路由变化
|
// 监听路由变化
|
||||||
watch(
|
watch(
|
||||||
|
@@ -112,4 +112,4 @@ const storeSetup = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useTabsStore = defineStore('tabs', storeSetup, { persist: false })
|
export const useTabsStore = defineStore('tabs', storeSetup, { persist: true })
|
||||||
|
Reference in New Issue
Block a user