diff --git a/src/common/utils/file.ts b/src/common/utils/file.ts index e019d9ee..55d5a7a5 100644 --- a/src/common/utils/file.ts +++ b/src/common/utils/file.ts @@ -125,7 +125,7 @@ export async function httpDownload(options: string | HttpDownloadOptions): Promi } } } - const fetchRes = await fetch(url, headers); + const fetchRes = await fetch(url, { headers }); if (!fetchRes.ok) throw new Error(`下载文件失败: ${fetchRes.statusText}`); const blob = await fetchRes.blob();