From 75b2f01dd028ce23f5d247e4a5ae218fd3f2e598 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 11 四月 2025 15:15:45 +0800 Subject: [PATCH] Merge branch 'develop' --- 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