dev_forum
杨树明 5 years ago
parent 6c5d67b026
commit 88ff696730

@ -40,8 +40,9 @@ class Fileslistitem extends Component{
let link = document.createElement('a');
// link.href = window.URL.createObjectURL(new Blob([result.data.url]));
link.href = result.data.url;
let filesname=encodeURIComponent(result.data.title)
console.log(result.data.title)
link.download = encodeURIComponent(result.data.title);
link.download = decodeURIComponent(filesname)
//兼容火狐浏览器
console.log(result.data.title)
document.body.appendChild(link);

Loading…
Cancel
Save