mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 11:18:42 +08:00
fix[Excel]: fixed export merge-header excel bug
This commit is contained in:
parent
b8d47bd847
commit
e601da38d0
4
src/vendor/Export2Excel.js
vendored
4
src/vendor/Export2Excel.js
vendored
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user