update Form-item

update Form-item
This commit is contained in:
梁灏 2017-01-03 16:23:38 +08:00
parent 9f5e2c7e4d
commit 9dbff36498

View file

@ -162,7 +162,7 @@
model[this.prop] = this.fieldValue;
validator.validate(model, { firstFields: true }, (errors, fields) => {
validator.validate(model, { firstFields: true }, errors => {
this.validateState = !errors ? 'success' : 'error';
this.validateMessage = errors ? errors[0].message : '';