|
|
@ -41,7 +41,7 @@ class Fileslistitem extends Component{
|
|
|
|
// 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;
|
|
|
|
console.log(result.data.title)
|
|
|
|
console.log(result.data.title)
|
|
|
|
link.download = result.data.title;
|
|
|
|
link.download = encodeURIComponent(result.data.title);
|
|
|
|
//兼容火狐浏览器
|
|
|
|
//兼容火狐浏览器
|
|
|
|
console.log(result.data.title)
|
|
|
|
console.log(result.data.title)
|
|
|
|
document.body.appendChild(link);
|
|
|
|
document.body.appendChild(link);
|
|
|
|