diff --git a/src/views/login.vue b/src/views/login.vue index 4087083..3cc7c70 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -181,7 +181,7 @@ export default { Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 }); this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect}).catch(() => { }); + this.$router.push({ path: this.redirect || "/" }).catch(() => { }); }).catch(() => { // if (this.captchaEnabled) { // this.loading = false;