liweijie0812
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
3 deletions
-
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); |
|
|
|
|