|
|
|
@ -40,8 +40,10 @@ class Fileslistitem extends Component{
|
|
|
|
|
let link = document.createElement('a');
|
|
|
|
|
// link.href = window.URL.createObjectURL(new Blob([result.data.url]));
|
|
|
|
|
link.href = result.data.url;
|
|
|
|
|
// link.download = encodeURI(result.data.title);
|
|
|
|
|
console.log(result.data.title)
|
|
|
|
|
link.download = result.data.title;
|
|
|
|
|
//兼容火狐浏览器
|
|
|
|
|
console.log(result.data.title)
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
let evt = document.createEvent("MouseEvents");
|
|
|
|
|
evt.initEvent("click", false, false);
|
|
|
|
|