From fc12c5f75c52149185328a20cfd08329098caa04 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 17 十月 2023 17:17:35 +0800 Subject: [PATCH] 客户名称模块跟进,跟进记录没有对应到客户的问题+联系人选择了对应客户还有提示的问题 --- src/common/untils/request.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/common/untils/request.js b/src/common/untils/request.js index 173cccd..9cb4874 100644 --- a/src/common/untils/request.js +++ b/src/common/untils/request.js @@ -86,6 +86,15 @@ } }, (error) => { + if (error.response.status === 401){ + if (isDev){ + alert("JWT澶辨晥") + }else { + // JWT閴存潈澶辨晥 璺宠浆鍒扮櫥褰曢〉 + window.location = getApsPage()+'/login' + } + } + let { message } = error if (message === "Network Error") { message = "鍚庣鎺ュ彛杩炴帴寮傚父" -- Gitblit v1.8.0