fix: validateFields await missing (#3254)

This commit is contained in:
xachary 2023-11-08 11:42:54 +08:00 committed by GitHub
parent 8ef39def79
commit 71c3fea88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,7 @@ export function useFormEvents({
} }
async function validateFields(nameList?: NamePath[] | undefined) { async function validateFields(nameList?: NamePath[] | undefined) {
const values = unref(formElRef)?.validateFields(nameList); const values = await unref(formElRef)?.validateFields(nameList);
return handleFormValues(values); return handleFormValues(values);
} }