src/views/login.vue
@@ -6,7 +6,7 @@ :rules="loginRules" class="login-form" > <h3 class="title">浙中医大二院智慧随访平台</h3> <h3 class="title">无锡儿童医院智慧随访平台</h3> <el-form-item prop="username"> <el-input v-model="loginForm.username" @@ -195,7 +195,8 @@ this.$store .dispatch("Login", this.loginForm) .then(() => { this.$router.push({ path: this.redirect || "/" }).catch(() => {}); // this.$router.push({ path: this.redirect || "/" }).catch(() => {}); this.$router.push({ path:"/patient/patient" }).catch(() => {}); }) .catch(() => { this.loading = false;