mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
perf: cas auth (#3436)
This commit is contained in:
parent
305cdea34b
commit
bd75a3d5bc
|
|
@ -44,7 +44,7 @@ router.beforeEach(
|
|||
}
|
||||
const p_token = to.query.token
|
||||
if (p_token) {
|
||||
chatUser.setToken(p_token)
|
||||
chatUser.setToken(p_token as string)
|
||||
}
|
||||
const token = chatUser.getToken()
|
||||
if (authentication) {
|
||||
|
|
@ -75,7 +75,12 @@ router.beforeEach(
|
|||
}
|
||||
return
|
||||
}
|
||||
next()
|
||||
if (p_token) {
|
||||
next({ ...to, query: {} })
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue