diff --git a/src/components/form/form-item.vue b/src/components/form/form-item.vue index 01f6042..654f536 100644 --- a/src/components/form/form-item.vue +++ b/src/components/form/form-item.vue @@ -85,8 +85,13 @@ }, watch: { error (val) { - this.validateMessage = val; - this.validateState = 'error'; + if (val === '') { + this.validateMessage = ''; + this.validateState = ''; + } else { + this.validateMessage = val; + this.validateState = 'error'; + } }, validateStatus (val) { this.validateState = val; @@ -246,4 +251,4 @@ this.dispatch('iForm', 'on-form-item-remove', this); } }; - \ No newline at end of file + -- libgit2 0.21.4