diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index 3d0de47..e85b0c8 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -78,7 +78,7 @@ export default { * if input no value , disabled. */ isDisabledButton() { - let inputAreSpaces = this.auth.username === '' || this.auth.password === ''; + let inputAreSpaces = this.auth.username === '' || this.auth.password === '' || this.isInvalid === true; return this.isDisabled = inputAreSpaces ? true : false; }, }, @@ -88,7 +88,7 @@ export default { */ changeHandler(event) { let inputValue = event.target.value; - if(inputValue !== '')this.isInvalid = false; + if(inputValue !== '') this.isInvalid = false; }, }, };