From 37adbf5eb31630dadf2985b08a91191c6fd8a7be Mon Sep 17 00:00:00 2001 From: kidv Date: Thu, 18 Jul 2024 00:33:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=BD=93entity=E6=B2=A1=E6=9C=89comment?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E7=94=A8propertyName=E5=81=9A?= =?UTF-8?q?=E4=B8=BA=E5=88=97=E5=90=8D=E8=80=8C=E4=B8=8D=E6=98=AF=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/helper/hooks/code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/helper/hooks/code.ts b/src/modules/helper/hooks/code.ts index ef868a3..ece603f 100644 --- a/src/modules/helper/hooks/code.ts +++ b/src/modules/helper/hooks/code.ts @@ -158,7 +158,7 @@ export function useCode() { } // 格式化标题 - label = label.split(" ")[0]; + label = label?.split?.(" ")?.[0] || column.propertyName; return { column: {