tarBar有4个按钮,其中3个跳转同一个页面,开发者工具中显示正常,但是预览或者体验版只显示两个,相同pagePath的只会显示一个,这个要如何解决?
"pages": [
"pages/index/index",
"pages/list/list",
"pages/detail/detail"
],
"tabBar": {
"custom": false,
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"bindchange": "bindChange",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "image/Home.png",
"selectedIconPath": "image/Home_HL.png",
"text": "首页"
},
{
"pagePath": "pages/list/list",
"iconPath": "image/game.png",
"selectedIconPath": "image/game_HL.png",
"text": "游戏"
},
{
"pagePath": "pages/list/list",
"iconPath": "image/comic.png",
"selectedIconPath": "image/comic_HL.png",
"text": "动漫"
},
{
"pagePath": "pages/list/list",
"iconPath": "image/util.png",
"selectedIconPath": "image/util_HL.png",
"text": "工具"
}
]
}
这种需求就不要使用 tabBar 了,设计的规则就是这样的。
建议去除相同的