dev_forum
杨树明 5 years ago
parent 2293487e85
commit e8ff20d94c

@ -31,7 +31,8 @@ class Fileslistitem extends Component{
downloadfiles=(url,name)=>{
const aLink = document.createElement('a');
aLink.style.display='none';
aLink.download =name;
console.log(name)
aLink.setAttribute('download',name)
aLink.href = url;
document.body.appendChild(aLink);
aLink.click();

Loading…
Cancel
Save