|
|
|
@@ -69,9 +69,9 @@ export const postWithFiles = ({ url, params, files, onSuccess, onFail, onError } |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
export const fileDownload = ({ url, fileId, skey, filename, params, method, onResponse, onError }) => { |
|
|
|
export const fileDownload = ({ url, fileId, skey, params, method, onResponse, onError }) => { |
|
|
|
if (!url) { |
|
|
|
url = FILE_DOWN_GET + "/" + fileId + "/" + skey + "/" + filename |
|
|
|
url = FILE_DOWN_GET + "/" + fileId + "/" + skey |
|
|
|
} |
|
|
|
if (method == 'post') { |
|
|
|
axios.post(url, params, |
|
|
|
|