Parcourir la source

登录失败后刷新验证码

防止被暴力破解
gpYang il y a 5 ans
Parent
commit
a4a12cab4e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      QMPlusVuePage/src/view/login/login.vue

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

@@ -86,7 +86,8 @@ export default {
     async submitForm() {
       this.$refs.loginForm.validate(async v => {
         if (v) {
-          await this.login()
+          this.login()
+          this.loginVefify()
         } else {
           this.$message({
             type: 'error',