Explorar o código

fix: 修改登录后跳转路径至新首页

将登录成功后的跳转路径从 '/pages/home/index' 更新为 '/pages/home-new/index',以适配新首页结构
huoyi hai 1 mes
pai
achega
0406a92dbe
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
   }