From e601da38d0791b3ec115741dea7e763a1e75ed35 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 18 Mar 2019 15:56:43 +0800 Subject: [PATCH] fix[Excel]: fixed export merge-header excel bug --- src/vendor/Export2Excel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendor/Export2Excel.js b/src/vendor/Export2Excel.js index 3fda4465..3a2e8aed 100644 --- a/src/vendor/Export2Excel.js +++ b/src/vendor/Export2Excel.js @@ -158,8 +158,8 @@ export function export_json_to_excel({ data = [...data] data.unshift(header); - for (let header of multiHeader) { - data.unshift(header) + for (let i = multiHeader.length-1; i > -1; i--) { + data.unshift(multiHeader[i]) } var ws_name = "SheetJS";