Преглед изворни кода

Merge pull request #37 from gpYang/master

登录失败后刷新验证码
蒋吉兆 пре 5 година
родитељ
комит
510b750e5f
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      QMPlusVuePage/src/view/login/login.vue

+ 3 - 1
QMPlusVuePage/src/view/login/login.vue

@@ -86,13 +86,15 @@ export default {
     async submitForm() {
       this.$refs.loginForm.validate(async v => {
         if (v) {
-          await this.login()
+          this.login()
+          this.loginVefify()
         } else {
           this.$message({
             type: 'error',
             message: '请正确填写登录信息',
             showClose: true
           })
+          this.loginVefify()
           return false
         }
       })