mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-27 20:42:52 +00:00
fix: chat route (#3276)
This commit is contained in:
parent
119f678224
commit
315ee4bc3e
|
|
@ -25,7 +25,7 @@ router.beforeEach(
|
|||
return
|
||||
}
|
||||
const { chatUser } = useStore()
|
||||
const notAuthRouteNameList = ['UserLogin']
|
||||
const notAuthRouteNameList = ['user_login']
|
||||
if (!notAuthRouteNameList.includes(to.name ? to.name.toString() : '')) {
|
||||
if (to.params && to.params.accessToken) {
|
||||
chatUser.setAccessToken(to.params.accessToken.toString())
|
||||
|
|
@ -40,7 +40,7 @@ router.beforeEach(
|
|||
if (authentication) {
|
||||
if (!token) {
|
||||
next({
|
||||
name: 'UserLogin',
|
||||
name: 'user_login',
|
||||
params: {
|
||||
accessToken: to.params.accessToken,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue