Browse Source

fix: 优化文件下载器方法

pull/6617/head
lighua 6 months ago
parent
commit
df655015b1
Failed to extract signature
  1. 3
      packages/effects/request/src/request-client/modules/downloader.ts

3
packages/effects/request/src/request-client/modules/downloader.ts

@ -28,11 +28,12 @@ class FileDownloader {
): Promise<T> {
const finalConfig: DownloadRequestConfig = {
responseReturn: 'body',
method: 'GET',
...config,
responseType: 'blob',
};
const response = await this.client.get<T>(url, finalConfig);
const response = await this.client.request<T>(url, finalConfig);
return response;
}

Loading…
Cancel
Save