Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleSubmit = (values, errors) => {
if (errors) {
console.log('errors', errors);
return;
}
console.log('values:', values);
Message.success('登录成功');
// 登录成功后做对应的逻辑处理
};
this.refs.form.validateAll((errors, values) => {
if (errors) {
console.log('errors', errors);
return;
}
console.log(values);
Message.success('注册成功');
this.props.history.push('/user/login');
});
};
this.refs.form.validateAll((errors, values) => {
if (errors) {
console.log('errors', errors);
return;
}
console.log(values);
Message.success('登录成功');
this.props.history.push('/');
});
};
this.refs.form.validateAll((errors, values) => {
if (errors) {
console.log({ errors });
}
console.log({ values });
Message.success('提交成功');
this.props.history.push('/post/list');
});
};