소스 검색

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

神仙都没用 9 달 전
부모
커밋
ebcf33ed54
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: {