From d958c09166e101483bfd845da9340ce525355815 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 28 二月 2024 16:13:33 +0800
Subject: [PATCH] 新建销售子单和新建销售明细单-产品管理-添加、编辑、删除产品数据处理和保存时数据处签约实际默认设置

---
 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 2f7613e..7bfc4d3 100644
--- a/src/common/untils/request.js
+++ b/src/common/untils/request.js
@@ -81,6 +81,18 @@
         window.location = getApsPage()+'/login'
       }
       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'
+      // }
     } else {
       Message({
         message: res.data.msg,

--
Gitblit v1.8.0