From ebfa85ae1df02b3edd60189bb91249b1b161d2f2 Mon Sep 17 00:00:00 2001 From: smail Date: Sun, 30 Aug 2026 23:09:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E7=8A=B6=E6=80=81=E5=8A=A0=E8=BD=BD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/src/router/index.js b/fe/src/router/index.js index f288bd7a..4b93054c 100644 --- a/fe/src/router/index.js +++ b/fe/src/router/index.js @@ -8,6 +8,7 @@ import PasswordRecoveryView from "../views/PasswordRecovery/PasswordRecovery.vue import ResetBlockedView from "../views/ResetBlocked/ResetBlocked.vue"; import LoginVerificationView from "../views/LoginVerification/LoginVerification.vue"; import ForcePasswordChangeView from "../views/ForcePasswordChange/ForcePasswordChange.vue"; +import {useGlobalStatusStore} from "@/stores/useGlobalStatusStore"; const router = createRouter({ history: createWebHashHistory(), @@ -71,7 +72,6 @@ const router = createRouter({ }); router.beforeEach(async (to) => { - const {useGlobalStatusStore} = await import("@/stores/useGlobalStatusStore"); const globalStatus = useGlobalStatusStore(); const needsAuthentication = to.meta.requiresAuth || to.name === "force-password-change"; const authenticated = globalStatus.isLogin || (needsAuthentication && await globalStatus.refresh());