From 9ca0de195e3efe4ccc5ea33be24a31e2476baac4 Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 1 Sep 2025 15:18:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E8=A7=86=E8=A1=A8=E5=88=97=E7=BB=B4=E5=BA=A6=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E5=B8=A6=E6=A0=BC=E5=BC=8F=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/common/common_table.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index 702166d54d..fc85056a20 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1878,6 +1878,9 @@ function extractNumber(formattedValue: string, formatterCfg: BaseFormatter): { value: number numFmt: string } | string { + if (!formatterCfg) { + return formattedValue + } let result = formattedValue if (formatterCfg.type === 'percent') { result = result.slice(0, -1) // 去掉百分号