asd123a20 hace 3 años
padre
commit
3ecab2c773
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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: '错误',