From 6e1bf6c5679d8be22b987c005a355718b97133eb Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 12 Sep 2024 08:18:54 +0800 Subject: [PATCH] fix(projects): remove token when logout --- src/store/modules/auth/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 8fcdebed8..bd172bf84 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -44,6 +44,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { clearAuthStorage(); authStore.$reset(); + token.value = ''; if (!route.meta.constant) { await toLogin();