Skip to content

Commit df65501

Browse files
committed
fix: 优化文件下载器方法
1 parent 9fc5944 commit df65501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ class FileDownloader {
2828
): Promise<T> {
2929
const finalConfig: DownloadRequestConfig = {
3030
responseReturn: 'body',
31+
method: 'GET',
3132
...config,
3233
responseType: 'blob',
3334
};
3435

35-
const response = await this.client.get<T>(url, finalConfig);
36+
const response = await this.client.request<T>(url, finalConfig);
3637

3738
return response;
3839
}

0 commit comments

Comments
 (0)