change download file name
This commit is contained in:
@ -117,6 +117,7 @@ function Index() {
|
||||
function downloadReport(url) {
|
||||
fetch(url)
|
||||
.then(async response => {
|
||||
console.log(response.headers);
|
||||
const filename = response.headers
|
||||
.get("content-disposition")
|
||||
.split('"')[1];
|
||||
|
||||
Reference in New Issue
Block a user