修复登陆页面提示登陆超时BUG

This commit is contained in:
zhangdaiscott 2020-09-04 09:19:18 +08:00
parent 63e0076761
commit 087c736aca
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ const err = (error) => {
notification.error({ message: '系统提示', description: '拒绝访问',duration: 4})
break
case 500:
let path = window.location.href
//notification.error({ message: '系统提示', description:'Token失效请重新登录!',duration: 4})
if(token && data.message=="Token失效请重新登录" && path.indexOf('/user/login') < 0){
// update-begin- --- author:scott ------ date:20190225 ---- for:Token失效采用弹框模式不直接跳转----