(uniapp和)微信小程序页面跳转首页报错:navigateTo:fail can not navigateTo a tabbar page

如果在这种情况下无法实现跳转并出现can not navigate to tabBar page错误

很有可能是由于在底部tabbar里面定义乐同样连接地址的bar,如果在底部footer页面定义了相同地址的bar,则此页面无法跳转,

解决方法:

使用uniapp或微信小程序的

uni.switchTab({
         url: '路径'
});

wx.switchTab({
         url: '路径'
});

原文地址:https://www.cnblogs.com/fanqiuzhuji/p/12207256.html