自己看了一下,发现tabBar【2】pathPath字段没问题啊 ,为什么会出这样的bug呢?
app.json 代码如下:
{
"pages": [
"mypages/index/index",
"mypages/list/list"
],
"tabBar":{
"color":"#000000",
"selectedColor":"#ff7f50",
"borderStyle":"black",
"list":[
{
"iconPath":"images/home.png",
"selectedIconPath":"images/home-selected.png",
"pagePath":"mypages/list/list",
"text":"首页"
},
{
"iconPath":"images/search.png",
"selectedIconPath":"images.search-selected.png",
"pagePath":"mypages/list/list",
"text":"搜索"
},
{
"iconPath":"images/list.png",
"selectedIconPath":"images/list-selected.png",
"pathPath":"mypages/list/list",
"text":"列表"
}
],
"position":"bottom"
},
"debug":"true"
}