From 5f7a94284222a69889e8bba89bce5225d5cb1413 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 15 Jan 2026 10:10:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E9=80=8F=E8=A7=86:=20?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E5=9C=B0=E5=9B=BD=E5=AE=B6/=E5=9F=8E?= =?UTF-8?q?=E5=B8=82=20=E7=A9=BA=E5=80=BC=20=E4=B8=8D=E7=9C=81=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/ht.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/ht.js b/src/libs/ht.js index 67d7b0e..a599317 100644 --- a/src/libs/ht.js +++ b/src/libs/ht.js @@ -332,7 +332,7 @@ export const pivotBy = (_data, [rows, columns, date]) => { // 数组的字段值, 拆分处理 if (groupbyKeys.includes('destinationCountry')) { data = data.reduce((r, v, i) => { - const vjson = isEmpty(v.destinationCountry) ? [] : v.destinationCountry; + const vjson = isEmpty(v.destinationCountry) ? [""] : v.destinationCountry; const xv = (vjson).reduce((rv, cv, vi) => { rv.push({...v, destinationCountry: cv, key: vi === 0 ? v.key : `${v.key}@${cv}`}); return rv; @@ -344,7 +344,7 @@ export const pivotBy = (_data, [rows, columns, date]) => { } if (groupbyKeys.includes('destinations')) { data = data.reduce((r, v, i) => { - const vjson = isEmpty(v.destinations) ? [] : v.destinations; + const vjson = isEmpty(v.destinations) ? [""] : v.destinations; const xv = (vjson).reduce((rv, cv, vi) => { rv.push({...v, destinations: cv, key: vi === 0 ? v.key : `${v.key}@${cv}`}); return rv;