Skip to content

Commit 5616bc8

Browse files
committed
fix: chat route
1 parent 119f678 commit 5616bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/router/chat/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ router.beforeEach(
2525
return
2626
}
2727
const { chatUser } = useStore()
28-
const notAuthRouteNameList = ['UserLogin']
28+
const notAuthRouteNameList = ['user_login']
2929
if (!notAuthRouteNameList.includes(to.name ? to.name.toString() : '')) {
3030
if (to.params && to.params.accessToken) {
3131
chatUser.setAccessToken(to.params.accessToken.toString())
@@ -40,7 +40,7 @@ router.beforeEach(
4040
if (authentication) {
4141
if (!token) {
4242
next({
43-
name: 'UserLogin',
43+
name: 'user_login',
4444
params: {
4545
accessToken: to.params.accessToken,
4646
},

0 commit comments

Comments
 (0)