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

This commit is contained in:
e 2020-07-27 20:45:47 +08:00
parent e484641345
commit 445c20158b
1 changed files with 1 additions and 1 deletions

View File

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