From 553faa5faba929dbfc7d77814140e4894ec69624 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 7 Aug 2025 18:10:50 +0800 Subject: [PATCH] perf: Frontend router --- frontend/src/router/watch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/router/watch.ts b/frontend/src/router/watch.ts index a8c9ea10..f6f2c622 100644 --- a/frontend/src/router/watch.ts +++ b/frontend/src/router/watch.ts @@ -14,6 +14,10 @@ export const watchRouter = (router: any) => { await loadXpackStatic() await appearanceStore.setAppearance() LicenseGenerator.generateRouters(router) + if (to.path.startsWith('/login') && userStore.getUid) { + next('/') + return + } if (assistantWhiteList.includes(to.path)) { next() return