再顶顶,这个问题官方给解决下吧
web-view 中跳转到小程序页面无失败回调wx.miniProgram.navigateTo 跳转到不存在页面时仍返回 {errMsg: "invokeMiniProgramAPI:ok"} [代码]wx.miniProgram.navigateTo({[代码][代码] [代码][代码]url:[代码][代码]'/pages/index?test=testtest'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'success'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'fail'[代码][代码]);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'complete'[代码][代码]);[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]});[代码][代码] [代码][代码]});[代码] [图片]
2022-04-02