From c57f88aad2b84d9fe666f12a3310843974b472bc Mon Sep 17 00:00:00 2001 From: Soybean Date: Mon, 9 Jun 2025 22:34:57 +0800 Subject: [PATCH] fix(auth): remove redundant authStore declaration in resetStore function --- src/store/modules/auth/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 236d5f21..ce3327cd 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -13,6 +13,7 @@ import { clearAuthStorage, getToken } from './shared'; export const useAuthStore = defineStore(SetupStoreId.Auth, () => { const route = useRoute(); + const authStore = useAuthStore(); const routeStore = useRouteStore(); const tabStore = useTabStore(); const { toLogin, redirectFromLogin } = useRouterPush(false); @@ -39,8 +40,6 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { /** Reset auth store */ async function resetStore() { - const authStore = useAuthStore(); - recordUserId(); clearAuthStorage();