From 4ed39ba3f0521fe8b28a98a0c7f02a36b9202483 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 11 四月 2025 17:55:53 +0800
Subject: [PATCH] Merge branch 'positec' into dms

---
 src/api/index.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 171600c..a15eb49 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -74,8 +74,8 @@
     return Promise.reject(response.data)
   } else {
     if (response.data.ErrCode === 'E' && /姝婚攣/.test(response.data.message)) {
-      response.data.message = '鏈嶅姟鍣ㄧ箒蹇欙紝璇风◢鍚庨噸璇曪紒'
-      response.data.ErrMesg = '鏈嶅姟鍣ㄧ箒蹇欙紝璇风◢鍚庨噸璇曪紒'
+      response.data.message = window.GLOB.dict['server_busy'] || '鏈嶅姟鍣ㄧ箒蹇欙紝璇风◢鍚庨噸璇曪紒'
+      response.data.ErrMesg = response.data.message
     }
     if (response.config.requestId) {
       response.data.$requestId = response.config.requestId
@@ -85,7 +85,15 @@
 }, (error) => {
   let response = error.response || ''
 
-  if (response && response.status) {
+  if (!response) {
+    notification.error({
+      className: 'notification-custom-error',
+      bottom: 0,
+      message: error.message.includes('Network Error') && lang === 'zh-CN' ? '缃戠粶杩炴帴澶辫触锛�' : error.message,
+      placement: 'bottomRight',
+      duration: 15
+    })
+  } else if (response && response.status) {
     notification.error({
       className: 'notification-custom-error',
       bottom: 0,

--
Gitblit v1.8.0