Skip to content

Commit c08fba3

Browse files
committed
移除注册表单中的验证码字段
1 parent 943f68e commit c08fba3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/AccountForm/RegisterForm.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const form = useForm({
2323
validationSchema: toTypedSchema(
2424
z.object({
2525
account: z.string().min(1, '请输入用户名'),
26-
captcha: z.string().min(6, '请输入验证码'),
2726
password: z.string().min(1, '请输入密码').min(6, '密码长度为6到18位').max(18, '密码长度为6到18位'),
2827
checkPassword: z.string().min(1, '请再次输入密码'),
2928
}).refine(data => data.password === data.checkPassword, {
@@ -33,7 +32,6 @@ const form = useForm({
3332
),
3433
initialValues: {
3534
account: props.account ?? '',
36-
captcha: '',
3735
password: '',
3836
checkPassword: '',
3937
},

0 commit comments

Comments
 (0)