diff --git a/src/components/form/form-item.vue b/src/components/form/form-item.vue index 01f6042d..17fb9885 100644 --- a/src/components/form/form-item.vue +++ b/src/components/form/form-item.vue @@ -86,7 +86,7 @@ watch: { error (val) { this.validateMessage = val; - this.validateState = 'error'; + this.validateState = val === '' ? '' : 'error'; }, validateStatus (val) { this.validateState = val; @@ -246,4 +246,4 @@ this.dispatch('iForm', 'on-form-item-remove', this); } }; -</script> \ No newline at end of file +</script>