在没有云打包之前,在h5端,小程序端,手机端,全部都正常.但是打包成app了之后发现,tabbar的图标没有显示出来
我之前的tabbar是这样写的
"list": [{
"pagePath": "pages/home/home",
"text": "迷妮",
"iconPath": "./static/icon/home-default.png",
"selectedIconPath": "./static/icon/home-acitve.png"
},
{
"pagePath": "pages/msg/msg",
"text": "解读所",
"iconPath": "./static/icon/news-default.png",
"selectedIconPath": "./static/icon/news-active.png"
},
{
"pagePath": "pages/profile/profile",
"text": "秘密基地",
"iconPath": "./static/icon/my-default.png",
"selectedIconPath": "./static/icon/my-active.png"
}
]
修改成
"list": [{
"pagePath": "pages/home/home",
"text": "迷妮",
"iconPath": "static/icon/home-default.png",
"selectedIconPath": "static/icon/home-acitve.png"
},
{
"pagePath": "pages/msg/msg",
"text": "解读所",
"iconPath": "static/icon/news-default.png",
"selectedIconPath": "static/icon/news-active.png"
},
{
"pagePath": "pages/profile/profile",
"text": "秘密基地",
"iconPath": "static/icon/my-default.png",
"selectedIconPath": "static/icon/my-active.png"
}
]
再次打包就正常显示图标了
具体是什么原因,不太清楚