From 26289b7787bc024370a2bc5c599be0ed0664e9ca Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 14 May 2024 19:13:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B6=85=E6=97=B660s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tool/file.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/tool/file.ts b/src/api/tool/file.ts index 25b468ba..a50d1cee 100644 --- a/src/api/tool/file.ts +++ b/src/api/tool/file.ts @@ -18,6 +18,7 @@ export async function downloadFile(filePath: string, range?: string) { method: 'get', headers: range ? { range } : {}, responseType: 'blob', + timeout: 60_000, }); } @@ -79,6 +80,7 @@ export function uploadFile(data: FormData) { method: 'post', data, dataType: 'form-data', + timeout: 180_000, }); } @@ -202,6 +204,7 @@ export function chunkUpload(data: FormData) { method: 'post', data, dataType: 'form-data', + timeout: 60_000, }); } @@ -241,7 +244,7 @@ export async function uploadFileToNE( neType, neId, }, - timeout: 30_000, + timeout: 60_000, }); return transferToNeFileRes; }