From fb48777cd4c3f086f77b5b26e1d03aebf995f4f5 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 12 九月 2024 18:40:26 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master-2.0' into master-2.0

---
 plugins/http.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/http.js b/plugins/http.js
index f393090..083f90c 100644
--- a/plugins/http.js
+++ b/plugins/http.js
@@ -52,6 +52,7 @@
 				dataType: options.dataType ? options.dataType : 'json',
 				data: options.data || null,
 				header,
+				timeout: 30000,
 				success: async (res) => {
 					if (!options.ignore) {
 						message.hideLoading()
@@ -219,6 +220,7 @@
 					if (!options.ignore) {
 						message.hideLoading()
 					}
+					message.showToast('网络异常')
 					reject({
 						data: null,
 						code: 9999,

--
Gitblit v1.9.3