revert: 刷新页面不保留 tabs 页签

This commit is contained in:
2024-04-26 22:54:19 +08:00
parent 25aa7cc17e
commit 0ef78ba95a
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: true })
export const useTabsStore = defineStore('tabs', storeSetup, { persist: false })