Skip to content

Commit 0ef78ba

Browse files
committed
revert: 刷新页面不保留 tabs 页签
1 parent 25aa7cc commit 0ef78ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/layout/components/Tabs/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const appStore = useAppStore()
5151
const tabsStore = useTabsStore()
5252
5353
// 重置, 同时把 affix: true 的路由筛选出来
54-
// tabsStore.reset()
54+
tabsStore.reset()
5555
5656
// 监听路由变化
5757
watch(

src/stores/modules/tabs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ const storeSetup = () => {
112112
}
113113
}
114114

115-
export const useTabsStore = defineStore('tabs', storeSetup, { persist: true })
115+
export const useTabsStore = defineStore('tabs', storeSetup, { persist: false })

0 commit comments

Comments
 (0)