var link = document.createElement('a')
link.href = window.URL.createObjectURL(res) // href 赋值为下载地址或blob
link.download = 'string.xlsx' // 表示下载文件的建议名称;该值对于下载行为来说不一定是有用的
link.click()
link.remove()
// 新版Chrome写法
const handleDownload = (url) => {
const urls = url.split('/')
const name = urls[urls.length - 1]
const link = document.createElement('a')
link.href = window.URL.createObjectURL(new Blob([url]))
link.download = name
link.click()
link.remove()
}