From 8fda975228a6b039caef614173c2da2ff1d1b79d Mon Sep 17 00:00:00 2001 From: chiayin Date: Wed, 4 Oct 2023 15:17:54 +0800 Subject: [PATCH] Issue #8: Done. --- src/views/Login/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }, }, };