当前位置:网站首页>解决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里面配置的是访问路径而不是文件地址,所以不要 . /
边栏推荐
- 函数传递参数小案例
- Transactions from December 29, 2021 to January 4, 2022
- Four common problems of e-commerce sellers' refund and cash return, with solutions
- Didi open source Delta: AI developers can easily train natural language models
- stm32和电机开发(从架构图到文档编写)
- SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
- RHCAS6
- 逆波兰表达式
- Developers, is cloud native database the future?
- Taobao short video, why the worse the effect
猜你喜欢

开发者,云原生数据库是未来吗?

Developers, is cloud native database the future?

RHCAS6

How to connect the API interface of Taobao open platform (super detailed)

I'm doing open source in Didi

A specific example of ABAP type and EDM type mapping in SAP segw transaction code

VoneDAO破解组织发展效能难题

Simply take stock reading notes (3/8)

在家庭智能照明中应用的测距传感芯片4530A

Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
随机推荐
Why is your next computer a computer? Explore different remote operations
JXL notes
Compilation principle reading notes (1/12)
Taobao short videos are automatically released in batches without manual RPA open source
Leetcode20. Valid parentheses
MySQL 巨坑:update 更新慎用影响行数做判断!!!
Taobao order amount check error, avoid capital loss API
SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子
RHCSA2
开发者,云原生数据库是未来吗?
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
It's too convenient. You can complete the code release and approval by nailing it!
Super efficient! The secret of swagger Yapi
SAP SEGW 事物码里的 Association 建模方式
Taobao flag insertion remarks | logistics delivery interface
国内市场上的BI软件,到底有啥区别
Lepton 无损压缩原理及性能分析
Pinduoduo flag insertion remarks API