|
|
@ -112,8 +112,8 @@ export const downloadFile = (url, fileName?, parameter?) => {
|
|
|
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
|
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
|
|
window.navigator.msSaveBlob(new Blob([data]), fileName);
|
|
|
|
window.navigator.msSaveBlob(new Blob([data]), fileName);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
let url = window.URL.createObjectURL(new Blob([data]));
|
|
|
|
const url = window.URL.createObjectURL(new Blob([data]));
|
|
|
|
let link = document.createElement('a');
|
|
|
|
const link = document.createElement('a');
|
|
|
|
link.style.display = 'none';
|
|
|
|
link.style.display = 'none';
|
|
|
|
link.href = url;
|
|
|
|
link.href = url;
|
|
|
|
link.setAttribute('download', fileName);
|
|
|
|
link.setAttribute('download', fileName);
|
|
|
|