src/views/login.vue
@@ -203,7 +203,10 @@ Cookies.remove("password") Cookies.remove('rememberMe') } this.$store.dispatch("Login", this.loginForm).then(res => { this.$store.dispatch("Login", { ...this.loginForm, loginPage: 'login' // 添加登录页面来源标记 }).then(res => { this.$router.push({ path: this.redirect || "/" }).catch(() => { }) }).catch(() => { this.loading = false