Преглед изворни кода

Merge pull request #121 from EasonQwQ/7.x

feat:当entity没有comment的时候用propertyName做为列名而不是报错
icssoa пре 9 месеци
родитељ
комит
1b08434daa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/modules/helper/hooks/code.ts

+ 1 - 1
src/modules/helper/hooks/code.ts

@@ -168,7 +168,7 @@ export function useCode() {
 		}
 
 		// 格式化标题
-		label = label.split(" ")[0];
+		label = label?.split?.(" ")?.[0] || column.propertyName;
 
 		return {
 			column: {