Commit eb1506f8 by 刘海龙

111

parent 7f181a03
......@@ -285,17 +285,17 @@
// }
// console.log(item.attach)
var link = document.createElement('a');
console.log(this.download[index])
//设置下载的文件名
// link.download = ;
// link.style.display = 'none';
// //设置下载路径
// link.href = item.attach;
// //触发点击
// document.body.appendChild(link);
// link.click();
// //移除节点
// document.body.removeChild(link);
console.log(this.download[index].title)
// 设置下载的文件名
link.download = this.download[index].title;
link.style.display = 'none';
//设置下载路径
link.href = this.download[index].attach;
//触发点击
document.body.appendChild(link);
link.click();
//移除节点
document.body.removeChild(link);
},
onTopTab: function(tab) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment