change download file name

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