Explorar o código

fix(登录): 将登录后重定向路径从home-new改为home

修改登录成功后的重定向路径,统一使用home页面而非home-new页面,保持路由一致性
huoyi hai 1 mes
pai
achega
acfca0d10b
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-new/index')
81
+      this.$tab.reLaunch('/pages/home/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-new/index')
167
+        this.$tab.reLaunch('/pages/home/index')
168 168
       })
169 169
     }
170 170
   }