mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-13 14:13:47 +08:00
v1.1.0
This commit is contained in:
@@ -112,6 +112,10 @@ export const postFileUploadAxios = (url, data) => {
|
||||
return axios.post(url, data, { headers: { 'Content-Type': 'multipart/form-data' } });
|
||||
};
|
||||
|
||||
export const getDownloadAxios = (url) => {
|
||||
return axios.get(url, { responseType: 'blob' });
|
||||
};
|
||||
|
||||
export const postDownloadAxios = (url, data) => {
|
||||
return axios.post(url, data, { responseType: 'blob' });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user