Przeglądaj źródła

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

神仙都没用 9 miesięcy temu
rodzic
commit
ebcf33ed54
1 zmienionych plików z 1 dodań i 1 usunięć
  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: {