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