fix: 修复退出登录问题

This commit is contained in:
caiyuchao committed 2025-01-22 17:12:27 +08:00
1 parent 09922f048e
commit 737999885f
2 files changed
+2 -2

No files matched your search

@@ -22,7 +22,7 @@ function logout() {
okText: $t('common.confirm'),
cancelText: $t('common.cancel'),
onOk: () => {
authStore.resetStore();
authStore.resetStore(true);
}
});
}
+1 -1
View File
@@ -43,7 +43,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
*/
async function resetStore(isMe = false) {
if (isMe) {
doDeleteLogout();
await doDeleteLogout();
}
const authStore = useAuthStore();