VM598 WAService.js:2 (in promise) MiniProgramError {“errMsg“:“redirectTo:fail can not redirectTo a t
VM598 WAService.js:2 (in promise) MiniProgramError {“errMsg”:“redirectTo:fail can not redirectTo a tabbar page”} Object
微信小程序出现的页面跳转错误

解决方法
wx.redirectTo({
url: '../index/index',
})
更改为
wx.switchTab({
url:'../index/index'
})
原因:如果是tabbar页面就别用redirectTo,tabbar页面只能用switchTab。
参考:http://sanshu.cn/article/14051.html