This commit is contained in:
雷欧(林平凡)
2025-09-19 19:01:35 +08:00
parent d68681faa0
commit 6d6d460dfc

View File

@@ -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) {