From 217bffa9704f2938391977605dcaae1a8baae86f Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 10 九月 2025 16:00:41 +0800
Subject: [PATCH] 修改首页搜索错误

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

diff --git a/src/axios.js b/src/axios.js
index 96e74e7..4d15f0c 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -202,11 +202,16 @@
     }
 
     // 濡傛灉璇锋眰涓洪潪200鍒欓粯璁ょ粺涓�澶勭悊
-    if (status !== 200 && status != 2 && status != 400) {
+    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