Commit b75730b9 by 刘海龙

111

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