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