this.$axios.post(url, {
"deviceLike": _this.select_word
},{ responseType: 'arraybuffer' }).then(res => {
if(res && res.data){
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' });
let objectUrl = URL.createObjectURL(blob);
window.location.href = objectUrl;
}
})
vue 导出blob 代码
最新推荐文章于 2024-06-06 10:02:08 发布