api
// 导出
exportBookExcel(donorsType,keyword){
return Ajax({
url: `${baseUrl}/export`, //接口
method: 'get',
responseType: "blob",
})
},
方法
// 导出
exportToExcel() {
api.exportBookExcel().then((data) => {
if (!data) {
return
}
let url = window.URL.createObjectURL(data.data)
let link = document.createElement('a')
link.style.display = 'none'
link.href = url
link.setAttribute('download', 'exportSendSmsLogData.xlsx')
document.body.appendChild(link)
link.click()
})
},