try{
const link = document.createElement('a')
const blob = new Blob(['xxxxx.downLoad'], { type: 'application/vnd.ms-excel' })
link.style.display = 'none'
link.href = URL.createObjectURL(blob)
link.download = '下载文件名称.xlsx'
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} catch(err){
this.$message.error(err)
}
网友评论