真实需求并不是要隐藏表头,而是因为后端返回的数据就把表头给拼上去了。。。 所以不能再加一个header。
直接再代码中不写header,会报错
excel.export_json_to_excel({
// header: null,
data,
filename: '调研统计报表',
autoWidth: this.autoWidth,
bookType: this.bookType
})
检查报错代码,找到Export2Excel.js第159行,加个判断header是否存在就可以了。