change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-15 14:27:09 +05:30
parent b37aa7674e
commit f14eb51ba6
9 changed files with 13 additions and 13 deletions

View File

@ -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', ''); //or any other extension
document.body.appendChild(link);
link.click();
});