From e8acc5b07f200d20137171d9aec084040cab5709 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 20 三月 2024 15:09:13 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/login.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index a1f6e84..e855493 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -149,6 +149,7 @@ watch: { $route: { handler: function(route) { + console.log(route); this.redirect = route.query && route.query.redirect; }, immediate: true @@ -198,7 +199,9 @@ this.loginInfo = loginInfo.user //濡傛灉杩斿洖涓�1姝e父璺宠浆 if(this.loginInfo.firstLogin == 1){ - this.$router.push({ path: "/screen" }).catch(()=>{}); + this.$router.push({ path: "/" }).catch(()=>{}); + return; + this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); } else { localStorage.setItem('firstLogin',0) } -- Gitblit v1.8.0