change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-15 17:20:41 +05:30
parent d1b6d9ca14
commit 9a3aaca2fd
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], { type: 'application/x-excel' }));
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.target = '_blank'