From ee71c2a66079c43fbaf9b23d2d2f73427d4dd76c Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 12 三月 2024 14:24:49 +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 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