From c384fa0a828409c2cdd075dbd1da2ce8807466cb Mon Sep 17 00:00:00 2001 From: j1ack <1209452658@qq.com> Date: Fri, 2 Jun 2023 10:59:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95bug=E2=80=99=20git=20commit?= =?UTF-8?q?=20-m=20=E8=8F=9C=E5=8D=95bug=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;