Commit dd0cb891 by 刘海龙

111

parent 34c63324
......@@ -280,10 +280,21 @@
},
onDownload: function(item){
if (item.attach) {
window.location.href = item.attach;
}
console.log(item.attach)
// if (item.attach) {
// window.location.href = item.attach;
// }
// console.log(item.attach)
var link = document.createElement('a');
//设置下载的文件名
link.download = filename;
link.style.display = 'none';
//设置下载路径
link.href = item.attach;
//触发点击
document.body.appendChild(link);
link.click();
//移除节点
document.body.removeChild(link);
},
onTopTab: function(tab) {
......@@ -369,7 +380,6 @@
attach: r.attach
}
}))
console.log(r.attach)
if(that.condition.length == 0) {
that.condition = [{ id: '', title: '全部', select: true }].concat(res.cate.map( r => {
return {
......
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