Explorar o código

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

神仙都没用 hai 9 meses
pai
achega
ebcf33ed54
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: {