Browse Source

Merge branch '7.x' of https://github.com/cool-team-official/cool-admin-vue into 7.x

神仙都没用 9 months ago
parent
commit
ebcf33ed54
1 changed files with 1 additions and 1 deletions
  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: {