fix(form): fix appendSchemaByField not work

This commit is contained in:
vben 2020-12-29 00:29:13 +08:00
parent 3549043f37
commit 405d7466dd

View File

@ -117,7 +117,7 @@ export function useFormEvents({
const schemaList: FormSchema[] = cloneDeep(unref(getSchema));
const index = schemaList.findIndex((schema) => schema.field === prefixField);
const hasInList = schemaList.some((item) => item.field === schema.field);
const hasInList = schemaList.some((item) => item.field === prefixField);
if (!hasInList) return;