Commit 405d7466dd935a845e91f4c6ece76b1475507eb7

Authored by vben
1 parent 3549043f

fix(form): fix appendSchemaByField not work

src/components/Form/src/hooks/useFormEvents.ts
... ... @@ -117,7 +117,7 @@ export function useFormEvents({
117 117 const schemaList: FormSchema[] = cloneDeep(unref(getSchema));
118 118  
119 119 const index = schemaList.findIndex((schema) => schema.field === prefixField);
120   - const hasInList = schemaList.some((item) => item.field === schema.field);
  120 + const hasInList = schemaList.some((item) => item.field === prefixField);
121 121  
122 122 if (!hasInList) return;
123 123  
... ...