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