From 3838979c0444bbcab3bcdebf0bcc91cdb5c0d9b7 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 13 九月 2024 15:18:38 +0800
Subject: [PATCH] 售后类型动态字典给

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

diff --git a/plugins/http.js b/plugins/http.js
index bfc3dd2..083f90c 100644
--- a/plugins/http.js
+++ b/plugins/http.js
@@ -1,7 +1,7 @@
 import environments from '@/environments'
 import message from './message'
 import storage from './storage'
-// import store from '../store'
+import store from '../store'
 import utils from './util.js'
 // import Vue from 'vue'
 // import {
@@ -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