src/views/login/index.vue
@@ -3,7 +3,7 @@ <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left"> <div class="title-container"> <h3 class="title">管理系统</h3> <h3 class="title">在线考试管理系统</h3> </div> <el-form-item prop="userName"> @@ -138,6 +138,7 @@ this.loading = true loginApi.login(this.loginForm).then(function (result) { if (result && result.code === 1) { console.log(result) _this.setUserName(_this.loginForm.userName) _this.$router.push({ path: '/' }) } else {