psj 2 years ago
parent
commit
d6fe822b2b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/views/home/Login.vue

+ 1 - 2
src/views/home/Login.vue

@@ -136,13 +136,11 @@
             //提交登录
             submitForm() {
                 this.message_text = null;
-
                 if(this.loginForm.identifyingCode == "" || this.loginForm.identifyingCode == null){
                     this.message_text = "请输入验证码!";
                 }
                 if(this.show_num.join("") != this.loginForm.identifyingCode.toString().toLocaleLowerCase()){
                     this.message_text = "验证码输入错误!";
-                    this.draw();
                 }
 
                 if(this.loginForm.passWord == "" || this.loginForm.passWord == null){
@@ -152,6 +150,7 @@
                 if(this.loginForm.userName == "" || this.loginForm.userName == null){
                     this.message_text = "请输入用户名!";
                 }
+                this.draw();
                 if(this.message_text != null){
                     MessageBox.alert(this.message_text, '提示', {
                         confirmButtonText: '确定'