dev_forum
杨树明 5 years ago
parent b72c948625
commit 6c5d67b026

@ -41,7 +41,7 @@ class Fileslistitem extends Component{
// link.href = window.URL.createObjectURL(new Blob([result.data.url])); // link.href = window.URL.createObjectURL(new Blob([result.data.url]));
link.href = result.data.url; link.href = result.data.url;
console.log(result.data.title) console.log(result.data.title)
link.download = result.data.title; link.download = encodeURIComponent(result.data.title);
//兼容火狐浏览器 //兼容火狐浏览器
console.log(result.data.title) console.log(result.data.title)
document.body.appendChild(link); document.body.appendChild(link);

Loading…
Cancel
Save