js解析文件流
exportExcel(data, name) {
let link = document.createElement('a')
let blob = new Blob([data], { type: 'application/vnd.ms-excel' })
link.style.display = 'none'
link.href = URL.createObjectURL(blob)
link.download = `${name}.xlsx` //下载的文件名
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
},