From a079b51dedafb805f9269826e24208ce28b43884 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 26 三月 2024 18:01:43 +0800
Subject: [PATCH] 卡片图片预览

---
 src/views/login.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index e604abf..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,6 +199,8 @@
               this.loginInfo = loginInfo.user
               //濡傛灉杩斿洖涓�1姝e父璺宠浆
               if(this.loginInfo.firstLogin == 1){
+                this.$router.push({ path: "/" }).catch(()=>{});
+                return;
                 this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
               } else {
                  localStorage.setItem('firstLogin',0)

--
Gitblit v1.8.0