如果在app.json 配置tabbar 的时候配置了 跳转的页面的链接;
在其余的子页面,设置用navigator 进行跳转会发现 在tabbar 设置过的页面无法进行跳转,这时需要在navigator 里加上open-type="switchTab"
例如:
<navigator open-type="switchTab" url="../index/index" >
</navigator>
本文介绍在使用app.json配置TabBar时遇到的页面跳转限制问题,并提供了解决方案,即通过在navigator中添加open-type=switchTab属性来实现对已配置TabBar页面的正确跳转。
如果在app.json 配置tabbar 的时候配置了 跳转的页面的链接;
在其余的子页面,设置用navigator 进行跳转会发现 在tabbar 设置过的页面无法进行跳转,这时需要在navigator 里加上open-type="switchTab"
例如:
<navigator open-type="switchTab" url="../index/index" >
</navigator>