mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-13 15:33:15 +08:00
refactor: 将跳转放到最后
This commit is contained in:
@@ -89,6 +89,11 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
|
||||
resetAllStores();
|
||||
accessStore.setLoginExpired(false);
|
||||
} catch {
|
||||
// 不做任何处理
|
||||
} finally {
|
||||
isLoggingOut.value = false; // 重置 标识
|
||||
}
|
||||
|
||||
// 回登录页带上当前路由地址
|
||||
await router.replace({
|
||||
@@ -99,11 +104,6 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
}
|
||||
: {},
|
||||
});
|
||||
} catch {
|
||||
// 不做任何处理
|
||||
} finally {
|
||||
isLoggingOut.value = false; // 重置 标识
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchUserInfo() {
|
||||
|
||||
Reference in New Issue
Block a user