asd123a20 3 years ago
parent
commit
3ecab2c773
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/frame/Login.vue

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

@@ -74,9 +74,10 @@ export default {
             sessionStorage.setItem('userName', res.userInfo.userName)
             sessionStorage.setItem('acct', res.userInfo.acct)
             this.$router.push('/frame')
+          } else {
+            this.codeLoad()
           }
         } else {
-          this.codeLoad()
           if (this.loginForm.username === '' || this.loginForm.username == null) {
             this.$notify.error({
               title: '错误',