Remove refreshToken navigation side effects and let callers handle redirects

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 19:32:06 +08:00
parent 1670054356
commit 28464214bc
2 changed files with 2 additions and 3 deletions

View File

@@ -97,7 +97,6 @@ export const useLoginStore = defineStore("loginStore", {
const { refreshTokenAndGetNew } = await import("@/api/auth.js");
await refreshTokenAndGetNew();
} catch (error) {
this.$router.push("/login");
throw error;
}
},