Commit 9dbff3649826af03a6ad7a3e18064f5a918ea635
1 parent
9f5e2c7e
update Form-item
update Form-item
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/form/form-item.vue
... | ... | @@ -162,7 +162,7 @@ |
162 | 162 | |
163 | 163 | model[this.prop] = this.fieldValue; |
164 | 164 | |
165 | - validator.validate(model, { firstFields: true }, (errors, fields) => { | |
165 | + validator.validate(model, { firstFields: true }, errors => { | |
166 | 166 | this.validateState = !errors ? 'success' : 'error'; |
167 | 167 | this.validateMessage = errors ? errors[0].message : ''; |
168 | 168 | ... | ... |