fix:导出超时时间
This commit is contained in:
1 parent
40082d9fc2
commit
98d4e4d2e5
1 file changed
+2
-1
+2
-1
@@ -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 || ""))
|
||||
|
||||
Reference in new issue
Block a user