xuhongjie
严飞永 1 month ago
parent d77fa4b624
commit a6049d585e

@ -54,13 +54,11 @@ router.beforeEach((to, from, next) => {
signature,
timespan
}).then(res => {
// 假设 res.token 是返回的 token
const token = res.token
if (token) {
setToken(token) // 存储 token
setToken(token)
localStorage.setItem('otherToken', userToken)
// 清除 URL 中的敏感参数
const cleanUrl = url
.replace(regUserToken, '')
.replace(regSignature, '')

Loading…
Cancel
Save