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