From b2cdc1af33e73ea1fdf6303d6548712634b28aa4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 13 九月 2025 18:08:19 +0800
Subject: [PATCH] 优化审批界面样式

---
 src/axios.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/axios.js b/src/axios.js
index ce674c0..4d15f0c 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -25,7 +25,7 @@
 let isRefreshing = false; // 鏍囪褰撳墠鏄惁姝e湪鍒锋柊token
 let refreshTokenPromise = null; // 鍒锋柊token鐨凱romise锛岄伩鍏嶉噸澶嶈姹�
 
-axios.defaults.timeout = 10000;
+axios.defaults.timeout = 30000;
 //杩斿洖鍏朵粬鐘舵�佺爜
 axios.defaults.validateStatus = function (status) {
   return status >= 200 && status <= 500; // 榛樿鐨�
@@ -113,7 +113,6 @@
     const message = res.data.msg || res.data.error_description || '绯荤粺閿欒';
     //濡傛灉鍦ㄧ櫧鍚嶅崟閲屽垯鑷catch閫昏緫澶勭悊
     if (statusWhiteList.includes(status)) return Promise.reject(res);
-
     // 濡傛灉鏄�401骞朵笖娌℃湁閲嶈瘯杩囷紝灏濊瘯鍒锋柊token
     if (status === 401 && !config._retry) {
       config._retry = true;
@@ -203,11 +202,16 @@
     }
 
     // 濡傛灉璇锋眰涓洪潪200鍒欓粯璁ょ粺涓�澶勭悊
-    if (status !== 200) {
+    if (status !== 200 && status == 400) {
+      
       ElMessage({
         message: message,
         type: 'error',
+        center:true,
+        showClose:true,
+        duration:0,
       });
+      //this.$alert(message,{confirmButtonText:'鍏抽棴'});
       return Promise.reject(new Error(message));
     }
     return res;

--
Gitblit v1.9.3