fetch(url).then((res) => {
res.blob().then((blob) => {
const url = window.URL.createObjectURL(blob)
const a = document.createElement('a')
a.href = url
a.download = '导入结果.xlsx';
a.click()
window.URL.revokeObjectURL(url)
})
})
01-21
07-20
427
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-13
5054
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)