Commit 488c85dc authored by Sixiang_Zzb's avatar Sixiang_Zzb

修改密码bug处理

parent 050f9cd0
......@@ -27,9 +27,11 @@ const Login: React.FC<LoginProps> = (props) => {
const handleSubmit = async (values: LoginParamsType) => {
console.log(values);
if (forgetflag) {
if (!values.userName || !values.code) {
message.error('The mailbox or verification code cannot be empty!!!');
return;
}
console.log('校验验证码!');
console.log(userName);
console.log(values);
const res = await ValidateCaptcha({ account: values.userName, code: values.code });
console.log(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment