download () {
axios({
method: 'get',
url: this.showVideoPath, // 网络链接
responseType: 'blob'
}).then(res => {
const fileName = this.sendvideoUrl
const link = document.createElement('a')
link.href = window.URL.createObjectURL(res.data)
link.download = fileName
link.click()
window.URL.revokeObjectURL(link.href)
})
},
根据网址下载视频
最新推荐文章于 2024-03-11 10:13:55 发布