asd123a20 преди 3 години
родител
ревизия
3ecab2c773
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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: '错误',