Selaa lähdekoodia

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

神仙都没用 9 kuukautta sitten
vanhempi
sitoutus
ebcf33ed54
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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: {