mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-09 09:46:55 +08:00
fix: Resolve white screen on data source page refresh
This commit is contained in:
committed by
fit2cloud-chenyw
parent
19e9058056
commit
ad0b747b47
@@ -34,9 +34,15 @@ export const watchRouter = (router: Router) => {
|
||||
next('/login')
|
||||
return
|
||||
}
|
||||
let isFirstDynamicPath = false
|
||||
if (!userStore.getUid) {
|
||||
await userStore.info()
|
||||
generateDynamicRouters(router)
|
||||
isFirstDynamicPath = to?.path === '/ds/index'
|
||||
if (isFirstDynamicPath) {
|
||||
next({ ...to, replace: true })
|
||||
return
|
||||
}
|
||||
}
|
||||
if (to.path === '/' || accessCrossPermission(to)) {
|
||||
next('/chat')
|
||||
|
||||
Reference in New Issue
Block a user