app.json全局tabBar设置tabBar不显示

由于小程序的机制问题,首页的tabBar第一个导航必须是首页

    "pages": [
        "pages/index/index",      #json文件不能加备注,这个是首页
        "pages/show/show"
    ],
    "tabBar": {
        "list": [{
            "pagePath": "pages/index/index", #json文件不能加备注,这个必须是首页的url
            "text": "index"
        },
            {
                "pagePath": "pages/show/show",
                "text": "show"
            }]
    },

相关文章:

  • 2022-12-23
  • 2021-12-26
  • 2021-07-01
  • 2021-07-17
  • 2021-07-21
  • 2021-08-10
  • 2022-02-25
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案