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: '错误',