功能变化: 刷新token后,重新请求
parent
d37955166d
commit
96a60e26b3
|
@ -294,7 +294,7 @@ from datetime import timedelta
|
|||
|
||||
SIMPLE_JWT = {
|
||||
# token有效时长
|
||||
"ACCESS_TOKEN_LIFETIME": timedelta(days=1),
|
||||
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=1),
|
||||
# token刷新后的有效时间
|
||||
"REFRESH_TOKEN_LIFETIME": timedelta(days=1),
|
||||
# 设置前缀
|
||||
|
|
|
@ -124,7 +124,7 @@ function createService () {
|
|||
util.cookies.remove('uuid')
|
||||
util.cookies.remove('refresh')
|
||||
router.push({ path: '/login' })
|
||||
error.message = '系统已检测到您的账号在其他地方登录~'
|
||||
error.message = '认证已失效,请重新登录~'
|
||||
break
|
||||
case 403:
|
||||
error.message = '拒绝访问'
|
||||
|
|
Loading…
Reference in New Issue