Bläddra i källkod

优化:登录页获取短信验证码不重置图形验证码

萤火科技 4 år sedan
förälder
incheckning
8eefcd1af5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      pages/login/components/main.vue

+ 2 - 2
pages/login/components/main.vue

@@ -122,7 +122,6 @@
         const app = this
         if (!app.isLoading && !app.smsState && app.formValidation(GET_CAPTCHA)) {
           app.sendSmsCaptcha()
-          app.getCaptcha()
         }
       },
 
@@ -192,6 +191,7 @@
             // 执行定时器
             app.timer()
           })
+          .catch(() => app.getCaptcha())
           .finally(() => app.isLoading = false)
       },
 
@@ -347,4 +347,4 @@
     justify-content: center;
     align-items: center;
   }
-</style>
+</style>