From 0ef78ba95ac31157556b8119b8eefd61d4f7686d Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 26 Apr 2024 22:54:19 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E4=BF=9D=E7=95=99=20tabs=20=E9=A1=B5=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Tabs/index.vue | 2 +- src/stores/modules/tabs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Tabs/index.vue b/src/layout/components/Tabs/index.vue index 398037e..cb95cfd 100644 --- a/src/layout/components/Tabs/index.vue +++ b/src/layout/components/Tabs/index.vue @@ -51,7 +51,7 @@ const appStore = useAppStore() const tabsStore = useTabsStore() // 重置, 同时把 affix: true 的路由筛选出来 -// tabsStore.reset() +tabsStore.reset() // 监听路由变化 watch( diff --git a/src/stores/modules/tabs.ts b/src/stores/modules/tabs.ts index 0867ef6..4fd0d06 100644 --- a/src/stores/modules/tabs.ts +++ b/src/stores/modules/tabs.ts @@ -112,4 +112,4 @@ const storeSetup = () => { } } -export const useTabsStore = defineStore('tabs', storeSetup, { persist: true }) +export const useTabsStore = defineStore('tabs', storeSetup, { persist: false })