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