dev_forum
杨树林 5 years ago
parent c4df994aa2
commit af12d95753

@ -1415,8 +1415,17 @@ class Listofworks extends Component {
console.log("1409");
console.log(Base64.decode(response.headers['content-disposition'].split('=')[1]));
const string = Base64.decode(response.headers['content-disposition'].split('=')[1]);
var now="";
try {
now = moment().year()+moment().month()+moment().date();
console.log("1422");
console.log(now);
} catch (e) {
console.log("1432");
}
downloadElement.href = href
downloadElement.download =string+".xlsx";
downloadElement.download =string+now+".xlsx";
document.body.appendChild(downloadElement)
downloadElement.click()
document.body.removeChild(downloadElement) // 下载完成移除元素

Loading…
Cancel
Save