fix: 修复登录加载菜单失败问题

This commit is contained in:
2026-08-18 11:06:08 +08:00
parent a1c9c47958
commit 8c78f5730e
4 changed files with 34 additions and 42 deletions
@@ -16,7 +16,6 @@ import {
getAccessCodesApi,
getUserInfoApi,
loginApi,
logoutApi,
registerApi,
} from '#/api';
import { $t } from '#/locales';
@@ -182,11 +181,6 @@ export const useAuthStore = defineStore('auth', () => {
}
async function logout(redirect: boolean = true) {
try {
await logoutApi();
} catch {
// 不做任何处理
}
resetAllStores();
accessStore.setLoginExpired(false);