当前位置:网站首页>解决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
- What if wechat is mistakenly sealed? Explain the underlying logic of wechat seal in detail
- SAP UI5 ObjectPageLayout 控件使用方法分享
- Pinduoduo flag insertion remarks API
- 阿里云SLB负载均衡产品基本概念与购买流程
- Taobao short video, why the worse the effect
- Distance measuring sensor chip 4530a used in home intelligent lighting
- Why is your next computer a computer? Explore different remote operations
- 太方便了,钉钉上就可完成代码发布审批啦!
- 10 minute fitness method reading notes (5/5)
猜你喜欢

ABAP editor in SAP segw transaction code

From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code

深度长文探讨Join运算的简化和提速

SAP SEGW 事物码里的 ABAP 类型和 EDM 类型映射的一个具体例子

Transactions on December 23, 2021

Didi open source Delta: AI developers can easily train natural language models

Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution

VoneDAO破解组织发展效能难题

OpenHarmony应用开发之Navigation组件详解

Research: data security tools cannot resist blackmail software in 60% of cases
随机推荐
VoneDAO破解组织发展效能难题
Install rhel8.2 virtual machine
单独编译内核模块
Concurrent performance test of SAP Spartacus with JMeter
自然语言处理从小白到精通(四):用机器学习做中文邮件内容分类
Yyds dry inventory JS intercept file suffix
以VMware创新之道,重塑多云产品力
超高效!Swagger-Yapi的秘密
Neural network of PRML reading notes (1)
Four common problems of e-commerce sellers' refund and cash return, with solutions
946. 验证栈序列
RHCSA2
Rasa Chat Robot Tutorial (translation) (1)
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
LeetCode20.有效的括号
由扫地增而引起的小叙
It's too convenient. You can complete the code release and approval by nailing it!
Compile kernel modules separately
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
简单上手的页面请求和解析案例