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