From 68cc109ef31d5e103204f439ae240b7c139dc025 Mon Sep 17 00:00:00 2001 From: wisonic-s <51065359+wisonic-s@users.noreply.github.com> Date: Tue, 1 Apr 2025 15:46:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E9=80=8F?= =?UTF-8?q?=E8=A7=86=E8=A1=A8=E6=8C=87=E6=A0=87=E6=80=BB=E8=AE=A1=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96=20(#15561)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-pivot.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts index 2a11210b9d..736173b286 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts @@ -341,9 +341,8 @@ export class TablePivot extends S2ChartView { }, {}) s2Options.layoutCoordinate = (_, __, col) => { if (col?.isGrandTotals) { - if (colTotalCfgMap[col.value]) { + if (colTotalCfgMap[col.value]?.label) { col.label = colTotalCfgMap[col.value].label - // col.value = colTotalCfgMap[col.value].label } } }