下载 downloadAnnex() { const aTag = document.createElement('a') aTag.href = 'http://..........?annexId=' + this.i_vue-element-admin">
赞
踩
创建a标签下载的方式,
<el-button type="primary" size="mini" @click="downloadAnnex()">
下载
</el-button>
downloadAnnex() {
const aTag = document.createElement('a')
aTag.href = 'http://..........?annexId=' + this.id //文件id
aTag.click()
},
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。