Browse Source

登录失败后刷新验证码

防止被暴力破解
gpYang 5 years ago
parent
commit
a4a12cab4e
1 changed files with 2 additions and 1 deletions
  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',