|
|
|
@ -46,10 +46,16 @@ class Fileslistitem extends Component{
|
|
|
|
|
console.log(newvalue)
|
|
|
|
|
link.download = Base64.decode(newvalue);
|
|
|
|
|
//兼容火狐浏览器
|
|
|
|
|
let evt = document.createEvent("MouseEvents");
|
|
|
|
|
evt.initEvent("click", false, false);
|
|
|
|
|
link.dispatchEvent(evt);
|
|
|
|
|
document.body.removeChild(link);
|
|
|
|
|
// let evt = document.createEvent("MouseEvents");
|
|
|
|
|
// evt.initEvent("click", false, false);
|
|
|
|
|
// link.dispatchEvent(evt);
|
|
|
|
|
// document.body.removeChild(link);
|
|
|
|
|
|
|
|
|
|
link.style.display = 'none';
|
|
|
|
|
|
|
|
|
|
link.setAttribute('download',result.data.title);
|
|
|
|
|
document.body.appendChild(link);
|
|
|
|
|
link.click();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // window.location.href=result.data.url;
|
|
|
|
|