功能变化: 刷新token后,重新请求

pull/91/MERGE
猿小天 2023-03-31 11:26:32 +08:00
parent d37955166d
commit 96a60e26b3
2 changed files with 2 additions and 2 deletions

View File

@ -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),
# 设置前缀

View File

@ -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 = '拒绝访问'