From 6d6d460dfc2a8476939103cd11e4ec2103792cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E6=AC=A7=EF=BC=88=E6=9E=97=E5=B9=B3=E5=87=A1?= =?UTF-8?q?=EF=BC=89?= Date: Fri, 19 Sep 2025 19:01:35 +0800 Subject: [PATCH] 1 --- src/views/login.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/login.vue b/src/views/login.vue index c86ed67..93f1499 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -142,7 +142,10 @@ export default { Cookies.remove('rememberMe') } this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect || "/sloworder/index" }).catch(()=>{}) + // 添加小延迟确保路由准备好 + setTimeout(() => { + this.$router.push({ path: this.redirect || "/sloworder/index" }).catch(()=>{}) + }, 100) }).catch(() => { this.loading = false if (this.captchaEnabled) {