html部分:
<span>
      <a @click="downFile(item.id)">下载简历</a>
</span>

 

//简历下载
    downFile(id){
        this.downList=this.deliveryList.find((item)=>item.id===id)
          
          let a = document.createElement('a')
            a.href = this.downList.url     后端传来的url
            a.click()
    },

 

Logo

前往低代码交流专区

更多推荐