diff --git a/src/utils/other.ts b/src/utils/other.ts index 7c0068e..e8ca3ab 100644 --- a/src/utils/other.ts +++ b/src/utils/other.ts @@ -300,6 +300,7 @@ export function postDownBlobFile(url: any, data: any, fileName: string) { descs: data?.descs ?? [], }, data, + timeout: 60 * 1000, }) .then((response) => { handleBlobFile(response, fileName) @@ -390,7 +391,7 @@ export function handleBlobFile(response: any, fileName: string) { } } if (typeof (blob as any).text === "function") { - (blob as any).text().then((t: string) => handleText(t)) + ;(blob as any).text().then((t: string) => handleText(t)) } else { const reader = new FileReader() reader.onload = () => handleText(String(reader.result || ""))