This commit is contained in:
dap
2024-09-20 08:06:53 +08:00
69 changed files with 2200 additions and 1218 deletions

View File

@@ -77,7 +77,11 @@ export const useAuthStore = defineStore('auth', () => {
}
async function logout(redirect: boolean = true) {
await logoutApi();
try {
await logoutApi();
} catch {
// 不做任何处理
}
resetAllStores();
accessStore.setLoginExpired(false);