vue 下载文件提示无法打开
// 划重点 封装接口方法时加上responseTapeexpoet function down (data) {return request ({url: xxx,method: xxx,data,responseType: ‘blob’ // 必须要加上否则会报错})}主要是responseType: ‘blob’文章转载,用于记录,原文地址 https://blog.csdn.net/miem_yang/article/details/116709626...
转载
2021-11-19 15:16:20 ·
833 阅读 ·
0 评论