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头部