From 087c736acadfdcfbcecff7ff963e52f2a3bba9d7 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Fri, 4 Sep 2020 09:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=99=BB=E9=99=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8F=90=E7=A4=BA=E7=99=BB=E9=99=86=E8=B6=85=E6=97=B6?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/utils/request.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ant-design-vue-jeecg/src/utils/request.js b/ant-design-vue-jeecg/src/utils/request.js index 4e085ce0..97189439 100644 --- a/ant-design-vue-jeecg/src/utils/request.js +++ b/ant-design-vue-jeecg/src/utils/request.js @@ -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失效采用弹框模式,不直接跳转----