fix[Excel]: fixed export merge-header excel bug

This commit is contained in:
Pan 2019-03-18 15:56:43 +08:00
parent b8d47bd847
commit e601da38d0
1 changed files with 2 additions and 2 deletions

View File

@ -158,8 +158,8 @@ export function export_json_to_excel({
data = [...data] data = [...data]
data.unshift(header); data.unshift(header);
for (let header of multiHeader) { for (let i = multiHeader.length-1; i > -1; i--) {
data.unshift(header) data.unshift(multiHeader[i])
} }
var ws_name = "SheetJS"; var ws_name = "SheetJS";