瀏覽代碼

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