We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19e9058 commit cf08a6aCopy full SHA for cf08a6a
frontend/src/router/watch.ts
@@ -34,9 +34,15 @@ export const watchRouter = (router: Router) => {
34
next('/login')
35
return
36
}
37
+ let isFirstDynamicPath = false
38
if (!userStore.getUid) {
39
await userStore.info()
40
generateDynamicRouters(router)
41
+ isFirstDynamicPath = to?.path === '/ds/index'
42
+ if (isFirstDynamicPath) {
43
+ next({ ...to, replace: true })
44
+ return
45
+ }
46
47
if (to.path === '/' || accessCrossPermission(to)) {
48
next('/chat')
0 commit comments