dev_forum
杨树林 5 years ago
parent f04f6f7e5e
commit d6fe4bee40

@ -1404,6 +1404,7 @@ class Listofworks extends Component {
const name = decodeURI(response.headers['content-disposition'].split('=')[1])
console.log(response.headers['content-disposition'].split('=')[1]);
console.log(name);
console.log(decodeURIComponent(response.headers['content-disposition'].split('=')[1]));
downloadElement.href = href
downloadElement.download = name
document.body.appendChild(downloadElement)

Loading…
Cancel
Save