simplify
This commit is contained in:
parent
4109caadd8
commit
02bf8fab66
1 changed files with 2 additions and 7 deletions
|
@ -85,13 +85,8 @@
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
error (val) {
|
error (val) {
|
||||||
if (val === '') {
|
|
||||||
this.validateMessage = '';
|
|
||||||
this.validateState = '';
|
|
||||||
} else {
|
|
||||||
this.validateMessage = val;
|
this.validateMessage = val;
|
||||||
this.validateState = 'error';
|
this.validateState = val === '' ? '' : 'error';
|
||||||
}
|
|
||||||
},
|
},
|
||||||
validateStatus (val) {
|
validateStatus (val) {
|
||||||
this.validateState = val;
|
this.validateState = val;
|
||||||
|
|
Loading…
Add table
Reference in a new issue