Commit df655015 by lighua

fix: 优化文件下载器方法

1 parent 9fc59443
......@@ -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;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!