当前位置:网站首页>解决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里面配置的是访问路径而不是文件地址,所以不要 . /
边栏推荐
- I met Tencent in the morning and took out 38K, which showed me the basic smallpox
- Halcon 模板匹配实战代码(一)
- JXL notes
- Comprehensive upgrade of Taobao short video photosynthetic platform
- Pinduoduo flag insertion remarks API
- Compile kernel modules separately
- Didi open source Delta: AI developers can easily train natural language models
- 2021-12-22 transaction record
- 开发者,云原生数据库是未来吗?
- Halcon template matching actual code (I)
猜你喜欢
RHCSA7
2021-12-22 transaction record
What is the difference between Bi software in the domestic market
MySQL 巨坑:update 更新慎用影响行数做判断!!!
RHCAS6
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
HiEngine:可媲美本地的云原生内存数据库引擎
VoneDAO破解组织发展效能难题
What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
【Nacos云原生】阅读源码第一步,本地启动Nacos
随机推荐
About LDA model
奔跑,开路
将函数放在模块中
在家庭智能照明中应用的测距传感芯片4530A
Overflow toolbar control in SAP ui5 view
Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article
HiEngine:可媲美本地的云原生内存数据库引擎
Leetcode20. Valid parentheses
CF:A. The Third Three Number Problem【关于我是位运算垃圾这个事情】
Kotlin variable
PyCharm安装第三方库图解
jxl笔记
Simply take stock reading notes (1/8)
Introduction to sap ui5 flexiblecolumnlayout control
解决 UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa2 in position 107
Alipay transfer system background or API interface to avoid pitfalls
I'm doing open source in Didi
RHCSA3
Difference between JUnit theories and parameterized tests
实战模拟│JWT 登录认证