mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Frontend router
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user