Ver código fonte

feat: 添加统计分析页面并更新登录跳转路径

添加统计分析页面路由配置,并将登录成功后的跳转路径从'/pages/home-new/index'更新为'/pages/home/index'
huoyi 1 mês atrás
pai
commit
3b47505a4e
2 arquivos alterados com 9 adições e 3 exclusões
  1. 7 1
      src/pages.json
  2. 2 2
      src/pages/login.vue

+ 7 - 1
src/pages.json

@@ -217,7 +217,7 @@
217 217
         "navigationBarTitleText": "公告详情"
218 218
       }
219 219
     },
220
-       {
220
+    {
221 221
       "path": "pages/announcement/noticeDetail",
222 222
       "style": {
223 223
         "navigationBarTitleText": "通知详情"
@@ -272,6 +272,12 @@
272 272
       }
273 273
     },
274 274
     {
275
+      "path": "pages/statisticalAnalysis/index",
276
+      "style": {
277
+        "navigationBarTitleText": "统计分析"
278
+      }
279
+    },
280
+    {
275 281
       "path": "pages/seizureRecord/index",
276 282
       "style": {
277 283
         "navigationBarTitleText": "查获记录"

+ 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
   }