(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: '路径'
});

posted @ 2020-01-17 19:34  自律·给我自由  阅读(17092)  评论(4编辑  收藏  举报