Browse Source

fix: solve the problem of inconsistent returns of formSchema custom field names when code login (#5563)

anyup 1 month ago
parent
commit
ccd99eb24d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      packages/effects/common-ui/src/ui/authentication/code-login.vue

+ 1 - 4
packages/effects/common-ui/src/ui/authentication/code-login.vue

@@ -70,10 +70,7 @@ async function handleSubmit() {
   const { valid } = await formApi.validate();
   const values = await formApi.getValues();
   if (valid) {
-    emit('submit', {
-      code: values?.code,
-      phoneNumber: values?.phoneNumber,
-    });
+    emit('submit', values);
   }
 }