编译错误:tabBar[2].pagePath 字段需为 string ?
发布于 4 年前 作者 fqin 6529 次浏览 来自 问答

自己看了一下,发现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”

}

1 回复

看看任务管理器中是否有这个程序中正在运行,关闭后,重新编译

回到顶部