From 5de621e943d9605d10e2ac5d46658c0626a68caa Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期四, 07 三月 2024 10:11:05 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/SRM --- src/common/untils/request.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/common/untils/request.js b/src/common/untils/request.js index 3e507c4..1c10074 100644 --- a/src/common/untils/request.js +++ b/src/common/untils/request.js @@ -78,6 +78,18 @@ // duration: 5 * 1000 // }) return Promise.reject(res.data) + }else if([2036].includes(res.data.code)){ + if (isDev){ + window.location = getApsPage()+'/commonWeb?resetPwd=true' + }else { + // JWT閴存潈澶辨晥 璺宠浆鍒扮櫥褰曢〉 + window.location = getApsPage()+'/commonWeb?resetPwd=true' + } + return Promise.reject(res.data) + + // if(window.location.pathname && window.location.pathname !== '/login'){ + // window.location = window.location.origin+'/login' + // } } }, (error) => { -- Gitblit v1.8.0