ant-design setFields 设置错误的办法
this.props.form.setFields({
modifyPassword: {
errors: [
{
field: "modifyPassword",message: "新密码不一致,请重新填写"
}
],value: values.modifyPassword
},modifyRePassword: {
errors: [
{
field: "modifyRePassword",value: values.modifyRePassword
}
})