From da0aa0cd0fd9dea7be736301c894aa02619bffdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Thu, 9 Oct 2025 14:34:45 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=20=E8=B0=83=E6=95=B4=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=88=B01200=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/index.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index 31e2671..f4db584 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -193,11 +193,13 @@ class RequestHttp { * 针对excel的上传,默认返回的是blob类型,Excel没问题时返回json特殊处理 */ uploadExcel(url: string, params?: object, _object = {}): Promise { - return this.service.post(url, params, { - ..._object, - headers: { 'Content-Type': 'multipart/form-data' }, - responseType: 'blob' - }).then(res => res.data) + return this.service + .post(url, params, { + ..._object, + headers: { 'Content-Type': 'multipart/form-data' }, + responseType: 'blob' + }) + .then(res => res.data) } // 添加SSE连接方法 @@ -220,8 +222,8 @@ class RequestHttp { headers: { Authorization: 'Bearer ' + userStore.accessToken }, - // 增加超时时间到120秒 - heartbeatTimeout: 120000 + // 增加超时时间到1200秒 + heartbeatTimeout: 1200000 }) // 设置默认的Authorization头部