dev_forum
杨树林 5 years ago
parent 6033f4624f
commit dec937c573

@ -1406,7 +1406,7 @@ class Listofworks extends Component {
console.log(name);
console.log(decodeURIComponent(response.headers['content-disposition'].split('=')[1]));
downloadElement.href = href
downloadElement.download = name
// downloadElement.download = name
document.body.appendChild(downloadElement)
downloadElement.click()
document.body.removeChild(downloadElement) // 下载完成移除元素

Loading…
Cancel
Save