Sfoglia il codice sorgente

fix:未登录底部导航栏跳转

yangfeng 11 mesi fa
parent
commit
97ce908b8e
1 ha cambiato i file con 7 aggiunte e 5 eliminazioni
  1. 7 5
      apps/mobile/src/components/no-login/NoLoginTabbar.vue

+ 7 - 5
apps/mobile/src/components/no-login/NoLoginTabbar.vue

@@ -140,16 +140,18 @@ export default {
       if (navIndex === -1) {
         return
       }
-      const item = this.navs[navIndex]
+      // const item = this.navs[navIndex]
       this.setActiveIcon(key)
       if (key === 'subscribe') {
         window.location.replace('/jyapp/frontPage/seo/free/subscribe')
       } else if (key === 'box') {
         window.location.replace('/jyapp/frontPage/seo/free/workbench')
-      } else {
-        this.$router.replace({
-          name: `tabbar-${item.key}`
-        })
+      } else if(key === 'message') {
+        window.location.href = '/jyapp/free/login?url=/jyapp/frontPage/messageCenter/sess/index'
+      } else if(key === 'me') {
+        window.location.href = '/jyapp/free/login?url=/jyapp/free/me'
+      } else if(key === 'home') {
+        window.location.replace('/')
       }
     }
   }