当前位置:网站首页>解决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里面配置的是访问路径而不是文件地址,所以不要 . /
边栏推荐
- Taobao short video, why the worse the effect
- Transactions from December 27 to 28, 2021
- Actual combat simulation │ JWT login authentication
- JXL notes
- Free testing of Taobao tmall API order and flag insertion remark interface
- Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
- 将函数放在模块中
- A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
- NFT: how to make money with unique assets?
- jxl笔记
猜你喜欢
RHCSA5
Taobao order amount check error, avoid capital loss API
Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function
开发者,云原生数据库是未来吗?
HiEngine:可媲美本地的云原生内存数据库引擎
逆波兰表达式
I'm doing open source in Didi
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
Alipay transfer system background or API interface to avoid pitfalls
【云原生】Nacos-TaskManager 任务管理的使用
随机推荐
Comprehensive upgrade of Taobao short video photosynthetic platform
【云原生】Nacos中的事件发布与订阅--观察者模式
Kotlin function
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
PyCharm安装第三方库图解
Super efficient! The secret of swagger Yapi
Rasa Chat Robot Tutorial (translation) (1)
Lepton 无损压缩原理及性能分析
Simply take stock reading notes (2/8)
初识Linkerd项目
Didi open source Delta: AI developers can easily train natural language models
《信息系统项目管理师》备考笔记---信息化知识
Compile kernel modules separately
Tips and tricks of image segmentation summarized from 39 Kabul competitions
10 minute fitness method reading notes (1/5)
Install rhel8.2 virtual machine
太方便了,钉钉上就可完成代码发布审批啦!
Principle and performance analysis of lepton lossless compression
Why is your next computer a computer? Explore different remote operations
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)