Просмотр исходного кода

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

将登录成功后的重定向路径从 '/pages/home/index' 改为 '/pages/home-new/index',以适配新的首页结构
huoyi 1 месяц назад
Родитель
Сommit
ceb7673bed
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/pages/login.vue

+ 2 - 2
src/pages/login.vue

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