fix: 优化文件下载器方法

This commit is contained in:
lighua 2025-08-08 15:31:31 +08:00
parent 9fc594434f
commit df655015b1
No known key found for this signature in database

View File

@ -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;
}