正文 解决前端做excel下载报错Content type ‘application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charse cat2007 V管理员 /前天/6阅读/0评论 0406 后端设置的请求头是application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,前端设置这个就报错。要设置成application/json,就可以成功导出表格了, `responseType` 表示服务器响应的数据类型,可以是 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'