UPDATE: 调整超时时间到1200秒

This commit is contained in:
贾同学
2025-10-09 14:34:45 +08:00
parent b0c88b9df2
commit da0aa0cd0f

View File

@@ -193,11 +193,13 @@ class RequestHttp {
* 针对excel的上传默认返回的是blob类型Excel没问题时返回json特殊处理
*/
uploadExcel(url: string, params?: object, _object = {}): Promise<BlobPart> {
return this.service.post(url, params, {
return this.service
.post(url, params, {
..._object,
headers: { 'Content-Type': 'multipart/form-data' },
responseType: 'blob'
}).then(res => res.data)
})
.then(res => res.data)
}
// 添加SSE连接方法
@@ -220,8 +222,8 @@ class RequestHttp {
headers: {
Authorization: 'Bearer ' + userStore.accessToken
},
// 增加超时时间到120秒
heartbeatTimeout: 120000
// 增加超时时间到1200
heartbeatTimeout: 1200000
})
// 设置默认的Authorization头部