1
This commit is contained in:
@@ -142,7 +142,10 @@ export default {
|
|||||||
Cookies.remove('rememberMe')
|
Cookies.remove('rememberMe')
|
||||||
}
|
}
|
||||||
this.$store.dispatch("Login", this.loginForm).then(() => {
|
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(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (this.captchaEnabled) {
|
if (this.captchaEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user