|
|
@ -42,7 +42,9 @@ class Fileslistitem extends Component{
|
|
|
|
let link = document.createElement('a');
|
|
|
|
let link = document.createElement('a');
|
|
|
|
document.body.appendChild(link);
|
|
|
|
document.body.appendChild(link);
|
|
|
|
link.href = result.data.url;
|
|
|
|
link.href = result.data.url;
|
|
|
|
link.download = '';
|
|
|
|
let filesname=decodeURI(result.data.title)
|
|
|
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
link.download = decodeURIComponent(filesname);
|
|
|
|
//兼容火狐浏览器
|
|
|
|
//兼容火狐浏览器
|
|
|
|
let evt = document.createEvent("MouseEvents");
|
|
|
|
let evt = document.createEvent("MouseEvents");
|
|
|
|
evt.initEvent("click", false, false);
|
|
|
|
evt.initEvent("click", false, false);
|
|
|
|