let blob = new Blob([data], { type: 'application/vand.ms-excel' })
let url = window.URL.createObjectURL(blob);
let link = document.createElement("a")
link.style.display = "none"
link.href = url;
link.setAttribute("download", "新建文件.xls");
document.body.appendChild(link)
link.click()
window.URL.revokeObjectURL(link.href)
document.body.removeChild(link)
this.$message.success('导出成功')
}
08-05
1万+