Commit eb1506f8 by 刘海龙

111

parent 7f181a03
...@@ -285,17 +285,17 @@ ...@@ -285,17 +285,17 @@
// } // }
// console.log(item.attach) // console.log(item.attach)
var link = document.createElement('a'); var link = document.createElement('a');
console.log(this.download[index]) console.log(this.download[index].title)
//设置下载的文件名 // 设置下载的文件名
// link.download = ; link.download = this.download[index].title;
// link.style.display = 'none'; link.style.display = 'none';
// //设置下载路径 //设置下载路径
// link.href = item.attach; link.href = this.download[index].attach;
// //触发点击 //触发点击
// document.body.appendChild(link); document.body.appendChild(link);
// link.click(); link.click();
// //移除节点 //移除节点
// document.body.removeChild(link); document.body.removeChild(link);
}, },
onTopTab: function(tab) { 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