vue 导出blob 代码
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);
原创
2020-06-06 15:16:46 ·
584 阅读 ·
0 评论