From 49c890ebeccf0ffc4363333bb669e26f22d8d1da Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Tue, 9 Nov 2021 09:36:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Form=20appendSchemaByField=E7=A7=BB?= =?UTF-8?q?=E9=99=A4hasInList=E5=88=A4=E6=96=AD=20(#1341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/hooks/useFormEvents.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/Form/src/hooks/useFormEvents.ts b/src/components/Form/src/hooks/useFormEvents.ts index efb3b41f..dd0eb93d 100644 --- a/src/components/Form/src/hooks/useFormEvents.ts +++ b/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); -- GitLab