From 7fceb6e30cc309690cb693c112a8959f2126cd1f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 11 四月 2025 15:15:16 +0800
Subject: [PATCH] 2025-04-11

---
 src/api/index.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 3c611c1..f62a6f2 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -73,7 +73,15 @@
 }, (error) => {
   let response = error.response || ''
 
-  if (response && response.status) {
+  if (!response && (error.message.includes('Network Error') || error.message.includes('CORS'))) {
+    notification.error({
+      className: 'notification-custom-error',
+      bottom: 0,
+      message: '缃戠粶杩炴帴澶辫触锛�',
+      placement: 'bottomRight',
+      duration: 15
+    })
+  } else if (response && response.status) {
     notification.error({
       className: 'notification-custom-error',
       bottom: 0,

--
Gitblit v1.8.0