Procházet zdrojové kódy

fix: Form appendSchemaByField移除hasInList判断 (#1341)

liweijie0812 před 3 roky
rodič
revize
49c890ebec
1 změnil soubory, kde provedl 0 přidání a 3 odebrání
  1. 0 3
      src/components/Form/src/hooks/useFormEvents.ts

+ 0 - 3
src/components/Form/src/hooks/useFormEvents.ts

@@ -125,9 +125,6 @@ export function useFormEvents({
     const schemaList: FormSchema[] = cloneDeep(unref(getSchema));
 
     const index = schemaList.findIndex((schema) => schema.field === prefixField);
-    const hasInList = schemaList.some((item) => item.field === prefixField || schema.field);
-
-    if (!hasInList) return;
 
     if (!prefixField || index === -1 || first) {
       first ? schemaList.unshift(schema) : schemaList.push(schema);