微信小程序navigateTo:fail page `/pages/XXXX/XXXX` is not found 解决方案
如题,navigateTo:fail page `/pages/XXXX/XXXX` is not found ,解决方案如下:
wx.reLaunch({
url: '/pages/login/login'
})
wx.switchTab({
url: '/pages/index/index'
})
wx.navigateTo({
url: '/pages/listDetails/listDetails?listId=' + listId
})
注:pages前要加"/"