wx.navigateToMiniProgram 在开发者工具中一直无法跳转?
1.首先我在app.json文件中配置了navigateToMiniProgramAppIdList,配置代码如下:
"navigateToMiniProgramAppIdList": [ "wxcd3dab9bb124f137" ] |
2.在用户点击页面按钮后调用 wx.navigateToMiniProgram api,一直报错说:
navigateToMiniProgram:fail appId “wxcd3dab9bb124f137” is not in navigateToMiniProgramAppIdList
调用代码如下:
wx.navigateToMiniProgram({ appId: 'wxcd3dab9bb124f137', path: 'pages/index/index', extraData: {}, envVersion: 'release', success(res) { // 打开成功 that.saveTask(item.id); }, fail: function (res) { console.error('跳转失败', res) } }) |
报错截图如下: