Skip to content

Commit 553faa5

Browse files
perf: Frontend router
1 parent c0eb582 commit 553faa5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/router/watch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export const watchRouter = (router: any) => {
1414
await loadXpackStatic()
1515
await appearanceStore.setAppearance()
1616
LicenseGenerator.generateRouters(router)
17+
if (to.path.startsWith('/login') && userStore.getUid) {
18+
next('/')
19+
return
20+
}
1721
if (assistantWhiteList.includes(to.path)) {
1822
next()
1923
return

0 commit comments

Comments
 (0)