liming 1 dzień temu
rodzic
commit
edb0bb1f24
2 zmienionych plików z 6 dodań i 6 usunięć
  1. 1 1
      src/layout/app/index.vue
  2. 5 5
      src/router/system.js

+ 1 - 1
src/layout/app/index.vue

@@ -9,7 +9,7 @@
     <component :is="Component" v-if="!route.meta.keepAlive" key="Layout" />
   </router-view>
 
-  <van-tabbar route active-color="#4765DD" inactive-color="#C4D0FF">
+  <van-tabbar v-if="route.meta.tabbar" route active-color="#4765DD" inactive-color="#C4D0FF">
     <van-tabbar-item v-for="item in tabbarOptions" :key="item.to" replace :to="item.to">
       <template #icon="props">
         <svg-icon  class="tabbar-icon" :name="item.icon" />

+ 5 - 5
src/router/system.js

@@ -10,31 +10,31 @@ export const systemRoutes = [
       {
         path: "im",
         name: "im",
-        meta: { title: "router.Social", keepAlive: false, navbar: true }, // 社交
+        meta: { title: "router.Social", keepAlive: false, navbar: true, tabbar:true }, // 社交
         component: () => import("@/views/home/index.vue"),
       },
       {
         path: "transaction",
         name: "transaction",
-        meta: { title: "router.Transaction", keepAlive: false, navbar: true }, // 交易
+        meta: { title: "router.Transaction", keepAlive: false, navbar: true, tabbar:true }, // 交易
         component: () => import("@/views/transaction/index.vue"),
       },
       {
         path: "wallet",
         name: "wallet",
-        meta: { title: "router.Wallet", keepAlive: false, navbar: true }, // 钱包
+        meta: { title: "router.Wallet", keepAlive: false, navbar: true, tabbar:true }, // 钱包
         component: () => import("@/views/wallet/index.vue"),
       },
       {
         path: "dapp",
         name: "dapp",
-        meta: { title: "router.Dapp", keepAlive: false, navbar: false }, // DAPP
+        meta: { title: "router.Dapp", keepAlive: false, navbar: false, tabbar:true }, // DAPP
         component: () => import("@/views/dapp/index.vue"),
       },
       {
         path: "me",
         name: "me",
-        meta: { title: "router.Me", keepAlive: false, navbar: false }, // 我的
+        meta: { title: "router.Me", keepAlive: false, navbar: false, tabbar:true }, // 我的
         component: () => import("@/views/me/index.vue"),
       },
     ],