将拿到的地址转一下数据格式
fetch(url)
.then(res => res.blob())
.then(blod => {
const a = document.createElement('a')
a.href = URL.createObjectURL(blob)
a.download = 'filename'
a.click()
})
将拿到的地址转一下数据格式
fetch(url)
.then(res => res.blob())
.then(blod => {
const a = document.createElement('a')
a.href = URL.createObjectURL(blob)
a.download = 'filename'
a.click()
})