From 737999885f971251f0fe218749eaedba6d9bacc0 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Wed, 22 Jan 2025 17:12:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/modules/global-header/components/user-avatar.vue | 2 +- src/store/modules/auth/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts/modules/global-header/components/user-avatar.vue b/src/layouts/modules/global-header/components/user-avatar.vue index a8900c6..04c5748 100644 --- a/src/layouts/modules/global-header/components/user-avatar.vue +++ b/src/layouts/modules/global-header/components/user-avatar.vue @@ -22,7 +22,7 @@ function logout() { okText: $t('common.confirm'), cancelText: $t('common.cancel'), onOk: () => { - authStore.resetStore(); + authStore.resetStore(true); } }); } diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 38e61c1..91192f7 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -43,7 +43,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { */ async function resetStore(isMe = false) { if (isMe) { - doDeleteLogout(); + await doDeleteLogout(); } const authStore = useAuthStore();