This commit is contained in:
梁灏 2017-10-09 10:48:48 +08:00
parent 4109caadd8
commit 02bf8fab66

View file

@ -85,13 +85,8 @@
},
watch: {
error (val) {
if (val === '') {
this.validateMessage = '';
this.validateState = '';
} else {
this.validateMessage = val;
this.validateState = 'error';
}
this.validateMessage = val;
this.validateState = val === '' ? '' : 'error';
},
validateStatus (val) {
this.validateState = val;