Commit 445c20158b765b34fb4655f1a8908138657b600b

Authored by e
1 parent e4846413

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

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