Quellcode durchsuchen

fix: 修改登录后重定向路径到新首页

将登录成功后的重定向路径从 '/pages/home/index' 改为 '/pages/home-new/index',以适配新的首页结构
huoyi vor 1 Monat
Ursprung
Commit
ceb7673bed
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/pages/login.vue

+ 2 - 2
src/pages/login.vue

@@ -78,7 +78,7 @@ export default {
78 78
   onLoad() {
79 79
     //#ifdef H5
80 80
     if (getToken()) {
81
-      this.$tab.reLaunch('/pages/home/index')
81
+      this.$tab.reLaunch('/pages/home-new/index')
82 82
     }
83 83
     this.getStorage()
84 84
     //#endif
@@ -164,7 +164,7 @@ export default {
164 164
       this.$store.dispatch('GetInfo').then(res => {
165 165
         // 登录成功后调用showMessageTabRedDot更新消息tab红点状态
166 166
         showMessageTabRedDot()
167
-        this.$tab.reLaunch('/pages/home/index')
167
+        this.$tab.reLaunch('/pages/home-new/index')
168 168
       })
169 169
     }
170 170
   }