refactor: 刷新页面保留所有 tabs 页签

This commit is contained in:
2024-04-22 19:36:14 +08:00
parent 45459b4e69
commit 1dd29dd78a
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ const appStore = useAppStore()
const tabsStore = useTabsStore()
// 重置, 同时把 affix: true 的路由筛选出来
tabsStore.reset()
// tabsStore.reset()
// 监听路由变化
watch(

View File

@@ -112,4 +112,4 @@ const storeSetup = () => {
}
}
export const useTabsStore = defineStore('tabs', storeSetup, { persist: false })
export const useTabsStore = defineStore('tabs', storeSetup, { persist: true })