From a21cfb288096d36df944713fb2645df02cc07f11 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 4 Apr 2021 23:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0api=E8=AF=B7=E6=B1=82timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.ts b/src/utils/http.ts index 8b15baa8..e0f801d8 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -16,7 +16,7 @@ const errorHandler = function (error: any) { throw error; // 如果throw. 错误将继续抛出. }; -const _request = extend({ timeout: 5000, params: { t: time }, errorHandler }); +const _request = extend({ timeout: 60000, params: { t: time }, errorHandler }); _request.interceptors.request.use((url, options) => { const token = localStorage.getItem(config.authKey);