From ec6857c9e95fbe1b175d7f697a836c210c0c2b2c Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 29 三月 2024 10:32:19 +0800
Subject: [PATCH] 公共组件选择产品信息处理

---
 src/common/untils/request.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/common/untils/request.js b/src/common/untils/request.js
index 3e507c4..ed39ab8 100644
--- a/src/common/untils/request.js
+++ b/src/common/untils/request.js
@@ -28,7 +28,7 @@
   const loginPathMap = {
       prod:`//${window.location.hostname}:9080`,
       test:`//192.168.20.119:9080`,
-      dev: `//192.168.8.107:8080`
+      dev: `//192.168.8.117:8080`
   }
   return loginPathMap[environmentType()]
 }
@@ -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