uni-app 配置tabbar时不提示相关路径
uni-app 配置tabbar时不提示相关路径
操作步骤:
- 配置tabbar的时候
预期结果:
- 能够提示路径
实际结果:
- 不提示路径
bug描述:
- 在配置tabbar的时候,相关的路径不提示
相关链接:
图片

更多关于uni-app 配置tabbar时不提示相关路径的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
感谢反馈,查看相关问题 下个版本修复
更多关于uni-app 配置tabbar时不提示相关路径的实战教程也可以访问 https://www.itying.com/category-93-b0.html
在 Uni-App 中配置 tabBar 时,如果你没有看到相关路径的提示,可能是由于以下几个原因:
1. 路径错误或不存在
- 确保
tabBar中配置的pagePath路径是正确的,并且对应的页面文件确实存在。 - 如果路径错误或文件不存在,编译器不会提示路径。
2. 配置文件格式错误
- 确保
pages.json文件格式正确,特别是tabBar配置部分。 - 示例配置:
{ "pages": [ { "path": "pages/index/index", "style": { "navigationBarTitleText": "首页" } }, { "path": "pages/user/user", "style": { "navigationBarTitleText": "用户" } } ], "tabBar": { "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "static/tab-home.png", "selectedIconPath": "static/tab-home-active.png" }, { "pagePath": "pages/user/user", "text": "用户", "iconPath": "static/tab-user.png", "selectedIconPath": "static/tab-user-active.png" } ] } }

