perf: 前端token超时标记删除测试代码
This commit is contained in:
parent
3d257a4a32
commit
46e8f56d0a
@ -25,8 +25,7 @@ export function setToken(token) {
|
||||
}
|
||||
export function setTokenExp(exp) {
|
||||
if (exp) {
|
||||
// return Cookies.set(TokenExpKey, exp)
|
||||
return Cookies.set(TokenExpKey, new Date().getTime() + 5000)
|
||||
return Cookies.set(TokenExpKey, exp)
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user