mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-26 07:04:31 +08:00
fix: request download and upload not support responseReturn (#5456)
* fix: request download and upload not support `responseReturn` * docs: update * fix: type of request client upload result
This commit is contained in:
@@ -31,6 +31,7 @@ describe('fileDownloader', () => {
|
||||
expect(result).toEqual(mockBlob);
|
||||
expect(mockAxiosInstance.get).toHaveBeenCalledWith(url, {
|
||||
responseType: 'blob',
|
||||
responseReturn: 'body',
|
||||
});
|
||||
});
|
||||
|
||||
@@ -51,6 +52,7 @@ describe('fileDownloader', () => {
|
||||
expect(mockAxiosInstance.get).toHaveBeenCalledWith(url, {
|
||||
...customConfig,
|
||||
responseType: 'blob',
|
||||
responseReturn: 'body',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user