mirror of
https://gitcode.com/gh_mirrors/vue/vue-vben-admin
synced 2026-05-24 04:57:46 +00:00
fix: Form appendSchemaByField移除hasInList判断 (#1341)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user