change download file name
This commit is contained in:
@ -123,7 +123,7 @@ function Index() {
|
||||
const url = window.URL.createObjectURL(new Blob([response.data]));
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.setAttribute('download', 'file.xls'); //or any other extension
|
||||
//link.setAttribute('download', 'file.xls'); //or any other extension
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user