Commit b75730b9 by 刘海龙

111

parent 3965c350
......@@ -285,16 +285,17 @@
// }
// console.log(item.attach)
var link = document.createElement('a');
console.log(this.condition)
//设置下载的文件名
link.download = "test";
link.style.display = 'none';
//设置下载路径
link.href = item.attach;
//触发点击
document.body.appendChild(link);
link.click();
//移除节点
document.body.removeChild(link);
// link.download = ;
// link.style.display = 'none';
// //设置下载路径
// link.href = item.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