change download file name
This commit is contained in:
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user