Skip to content

Commit

Permalink
revert: 刷新页面不保留 tabs 页签
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Apr 26, 2024
1 parent 25aa7cc commit 0ef78ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layout/components/Tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const appStore = useAppStore()
const tabsStore = useTabsStore()
// 重置, 同时把 affix: true 的路由筛选出来
// tabsStore.reset()
tabsStore.reset()
// 监听路由变化
watch(
Expand Down
2 changes: 1 addition & 1 deletion src/stores/modules/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ const storeSetup = () => {
}
}

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

0 comments on commit 0ef78ba

Please sign in to comment.