change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-15 14:04:29 +05:30
parent 9bcf5cd342
commit b37aa7674e
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', 'file.xls'); //or any other extension
document.body.appendChild(link);
link.click();
});