当前位置:网站首页>解决uni-app配置页面、tabBar无效问题
解决uni-app配置页面、tabBar无效问题
2022-07-05 12:42:00 【No Bug】
pages.json
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path" : "./pages/toBraille/toBraille",
"style" :
{
"navigationBarTitleText": "致力于改变盲人的生活",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#f8f8f8"
}
}
,{
"path" : "./pages/about/about",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "./pages/my/my",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"backgroundColor": "#ffffff",
"navigationBarBackgroundColor": "#ffffff"
},
"tabBar": {
"list": [
{
"pagePath": "./pages/toBraille/toBraille",
"iconPath": "./static/images/instant-message.png",
"selectedIconPath": "./static/images/instant-message.png",
"text": "转盲文"
},
{
"pagePath": "./pages/about/about",
"iconPath": "./static/images/process-inquire.png",
"selectedIconPath": "./static/images/process-inquire.png",
"text": "关于"
},
{
"pagePath": "./pages/my/my",
"iconPath": "./static/images/staff-manage.png",
"selectedIconPath": "./static/images/staff-manage.png",
"text": "我的"
}
]
}
}
明明配置好了但是页面没有任何显示
然后把路径前的 “ ./ ”去掉
正常显示
估计是因为pages和tabBar里面配置的是访问路径而不是文件地址,所以不要 . /
边栏推荐
- Difference between JUnit theories and parameterized tests
- 国内市场上的BI软件,到底有啥区别
- SAP UI5 ObjectPageLayout 控件使用方法分享
- ABAP editor in SAP segw transaction code
- Hiengine: comparable to the local cloud native memory database engine
- 946. 验证栈序列
- 函数的默认参数&函数参数的多种方法
- Annotation problem and hidden Markov model
- 奔跑,开路
- How to connect the API interface of Taobao open platform (super detailed)
猜你喜欢
随机推荐
Simply take stock reading notes (3/8)
Pinduoduo flag insertion remarks API
Introduction to sap ui5 flexiblecolumnlayout control
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
奔跑,开路
Annotation problem and hidden Markov model
使用 jMeter 对 SAP Spartacus 进行并发性能测试
非技术部门,如何参与 DevOps?
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
自然语言处理从小白到精通(四):用机器学习做中文邮件内容分类
10 minute fitness method reading notes (3/5)
##无监控,不运维,以下是监控里常用的脚本监控
初识Linkerd项目
Rasa Chat Robot Tutorial (translation) (1)
PyCharm安装第三方库图解
Simply take stock reading notes (4/8)
Get to know linkerd project for the first time
Alipay transfer system background or API interface to avoid pitfalls
SAP SEGW 事物码里的 Association 建模方式
石臻臻的2021总结和2022展望 | 文末彩蛋