如题,浏览器本地调试tabbar图标显示正常,到真机不显示
{
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "****"
}
},
{
"path": "pages/shop/shop",
"style": {
"navigationBarTitleText": "***"
}
},
{
"path": "pages/mine/mine",
"style": {
"navigationBarTitleText": "***",
"backgroundColor": "#408bdc"
}
}
],
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"iconWidth": "20px",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "/static/svg/homeLine.svg",
"selectedIconPath": "/static/svg/homeFill.svg",
"text": "**"
}, {
"pagePath": "pages/shop/shop",
"iconPath": "/static/svg/shoppingLine.svg",
"selectedIconPath": "/static/svg/shoppingFill.svg",
"text": "**"
}, {
"pagePath": "pages/mine/mine",
"iconPath": "/static/svg/userLine.svg",
"selectedIconPath": "/static/svg/userFill.svg",
"text": "**"
}]
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#dcdcdc",
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}
}
1 个回复
1***@163.com (作者)
已解决,不支持svg格式图标