mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
fix(form): fix appendSchemaByField not work
This commit is contained in:
@@ -117,7 +117,7 @@ export function useFormEvents({
|
|||||||
const schemaList: FormSchema[] = cloneDeep(unref(getSchema));
|
const schemaList: FormSchema[] = cloneDeep(unref(getSchema));
|
||||||
|
|
||||||
const index = schemaList.findIndex((schema) => schema.field === prefixField);
|
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;
|
if (!hasInList) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user