From d70e2d523b49c6be14cbd3e0e88850e11924a7bf Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Mon, 25 Nov 2024 18:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8ETab=E9=A1=B5=E4=B8=8D=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 2123c0e67..88a13544c 100755 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -3,6 +3,7 @@ import router from '@/router' import useMenuStore from './menu' import useRouteStore from './route' import useSettingsStore from './settings' +import useTabbarStore from './tabbar' const useUserStore = defineStore( // 唯一ID @@ -11,6 +12,7 @@ const useUserStore = defineStore( const settingsStore = useSettingsStore() const routeStore = useRouteStore() const menuStore = useMenuStore() + const tabbarStore = useTabbarStore() const account = ref(localStorage.account ?? '') const token = ref(localStorage.token ?? '') @@ -47,6 +49,7 @@ const useUserStore = defineStore( permissions.value = [] routeStore.removeRoutes() menuStore.setActived(0) + settingsStore.settings.tabbar.enable && tabbarStore.clean() router.push({ name: 'login', query: {