change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-15 17:03:26 +05:30
parent f14eb51ba6
commit 7581d4c441
9 changed files with 14 additions and 14 deletions

View File

@ -123,8 +123,8 @@ function Index() {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', ''); //or any other extension
document.body.appendChild(link);
//link.setAttribute('download', 'file.xls'); //or any other extension
//document.body.appendChild(link);
link.click();
});