From a4ab6ff994fd6cbaeabc8f84b7a195740966c3bf Mon Sep 17 00:00:00 2001 From: wjh Date: Sun, 7 Apr 2024 10:34:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E5=8C=BA=E5=9D=97=E4=B8=8D=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/client/schema-components/blocks/GroupBlock.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx b/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx index b9e3c23e0..992591a9c 100644 --- a/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx +++ b/packages/plugins/@hera/plugin-core/src/client/schema-components/blocks/GroupBlock.tsx @@ -150,7 +150,8 @@ const tableItem = (configItem, result, service, params, api) => { key: index, }; columns.forEach((colItem, index) => { - const data = isNaN(value[index]) ? value[index] : fieldTransformers(configItem, value[index], api); + const data = + typeof value[index] === 'string' ? value[index] : fieldTransformers(configItem, value[index], api); item[colItem.dataIndex] = data; }); options.push(item);