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