Commit 087c736acadfdcfbcecff7ff963e52f2a3bba9d7
1 parent
63e00767
修复登陆页面提示登陆超时BUG
Showing
1 changed file
with
1 additions
and
0 deletions
ant-design-vue-jeecg/src/utils/request.js
... | ... | @@ -32,6 +32,7 @@ const err = (error) => { |
32 | 32 | notification.error({ message: '系统提示', description: '拒绝访问',duration: 4}) |
33 | 33 | break |
34 | 34 | case 500: |
35 | + let path = window.location.href | |
35 | 36 | //notification.error({ message: '系统提示', description:'Token失效,请重新登录!',duration: 4}) |
36 | 37 | if(token && data.message=="Token失效,请重新登录" && path.indexOf('/user/login') < 0){ |
37 | 38 | // update-begin- --- author:scott ------ date:20190225 ---- for:Token失效采用弹框模式,不直接跳转---- |
... | ... |