mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-09 16:03:14 +08:00
fix: 优化文件下载器方法
This commit is contained in:
@@ -28,11 +28,12 @@ class FileDownloader {
|
|||||||
): Promise<T> {
|
): Promise<T> {
|
||||||
const finalConfig: DownloadRequestConfig = {
|
const finalConfig: DownloadRequestConfig = {
|
||||||
responseReturn: 'body',
|
responseReturn: 'body',
|
||||||
|
method: 'GET',
|
||||||
...config,
|
...config,
|
||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await this.client.get<T>(url, finalConfig);
|
const response = await this.client.request<T>(url, finalConfig);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user