vue下载excel文件乱码问题
把返回类型(responseType: 'blob')写在接口定义的地方
studentchargeitemExport(params) {
return axios({
url: `/charge-system/cs/cost/studentchargeitem/export`,
responseType: 'blob',
data: params,
headers: `arraybuffer`,
method: 'post'
});
},
本文来自博客园,作者:格,转载请注明原文链接:https://www.cnblogs.com/yuangyuan/p/16449636.html