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: {