navigateTo:fail can not navigateTo a tabbar page


 问题描述    微信小程序跳转页面报错 :navigateTo:fail can not navigateTo a tabbar page


1.跳转页面报了如上错误,查询微信开发文档,发现此api不支持跳转tabBar的页面

 解决问题   如果需要跳转tabBar页面  ,可以使用wx.switchTab() 

文档地址 https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.switchTab.html