change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-15 17:23:16 +05:30
parent 9a3aaca2fd
commit 7efff942a8
9 changed files with 13 additions and 13 deletions

View File

@ -127,7 +127,7 @@ function Index() {
// //document.body.appendChild(link);
// link.click();
const url = window.URL.createObjectURL(new Blob([response.data]));
const url = window.URL.createObjectURL(new Blob([response.data], { type: 'application/vnd.ms-excel' }));
const link = document.createElement('a');
link.href = url;
link.target = '_blank'