change download file name

This commit is contained in:
Mohamed Nouffer
2021-11-16 09:51:16 +05:30
parent 7efff942a8
commit 7f88d17ce4
9 changed files with 14 additions and 12 deletions

View File

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