当前位置:网站首页>解决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里面配置的是访问路径而不是文件地址,所以不要 . /
边栏推荐
- Hiengine: comparable to the local cloud native memory database engine
- 你的下一台电脑何必是电脑,探索不一样的远程操作
- Research: data security tools cannot resist blackmail software in 60% of cases
- PyCharm安装第三方库图解
- 10 minute fitness method reading notes (5/5)
- Introduction to the principle of DNS
- RHCSA7
- 滴滴开源DELTA:AI开发者可轻松训练自然语言模型
- A deep long article on the simplification and acceleration of join operation
- 2021-12-22 transaction record
猜你喜欢

CVPR 2022 | single step 3D target recognizer based on sparse transformer

Lepton 无损压缩原理及性能分析

Discussion on error messages and API versions of SAP ui5 getsaplogonlanguage is not a function

Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue

阿里云SLB负载均衡产品基本概念与购买流程

RHCSA7
![[Nacos cloud native] the first step of reading the source code is to start Nacos locally](/img/f8/d9b848593cf7380a6c99ee0a8158f8.png)
[Nacos cloud native] the first step of reading the source code is to start Nacos locally

简单上手的页面请求和解析案例

Taobao order amount check error, avoid capital loss API

超高效!Swagger-Yapi的秘密
随机推荐
Language model
实现 1~number 之间,所有数字的加和
Run, open circuit
谈谈我写作生涯的画图技巧
Yyds dry inventory JS intercept file suffix
PyCharm安装第三方库图解
HiEngine:可媲美本地的云原生内存数据库引擎
LeetCode20.有效的括号
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
OpenHarmony应用开发之Navigation组件详解
DNS的原理介绍
Simply take stock reading notes (4/8)
RHCSA2
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
奔跑,开路
RHCAS6
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Laravel文档阅读笔记-mews/captcha的使用(验证码功能)
Reshape the power of multi cloud products with VMware innovation
研究:数据安全工具在 60% 的情况下无法抵御勒索软件