This commit is contained in:
zhuoda
2020-04-20 17:08:42 +08:00
parent d53f271fc1
commit e486c1ff33
5 changed files with 26 additions and 22 deletions

View File

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