详细问题描述
进入多层内页后,监听返回按钮报错appServiceSDKScriptError
[内容]
重现步骤
有4个页面,index/index2/index3/index4
从index跳转到index4
在index4中监听返回 跳到index2:
onBackPress:function(){
uni.switchTab({
url:'../index2/index2'
})
}
控制台会报错:
12:08:40.535 appServiceSDKScriptError
12:08:40.555 d.close is not a function. (In 'd.close()', 'd.close' is undefined); at uni.navigateBack
12:08:40.575 (global function):7:69334
12:08:40.595 bn@(global function):7:33734
12:08:40.615 e@(global function):7:69313
12:08:40.635 Jn@(global function):7:81569
12:08:40.655 (global function):8:844
12:08:40.675 invoke@(global function):8:889
12:08:40.695 invoke@(global function):8:104437
12:08:40.715 X@(global function):8:162031
12:08:40.735 (global function):8:169484
12:08:40.755 Wc@(global function):8:321365
12:08:40.775 (global function):8:209876
12:08:40.795 (global function):8:417742
12:08:40.815 (global function):8:417784
12:08:40.835 (global function):8:173417
12:08:40.855 j@(global function):7:5976
12:08:40.875 weex service:3:101648
12:08:40.895 onCallback@weex service:3:104115
12:08:40.915 weex service:3:16298
12:08:40.935 callbackFromNative@weex service:3:15894
12:08:40.955 eval code
12:08:40.975 eval@[native code]
12:08:40.995 weex service:3:14990
12:08:41.015 consume@(weex framework):1:20313
12:08:41.035 map@[native code]
12:08:41.055 (weex framework):1:178111
IDE运行环境说明
HBuilderX
[IDE版本号] 2.0.1.20190614
[windows版本号] win7
[mac版本号]
uni-app运行环境说明
[运行端是h5或app或某个小程序?]app
[运行端版本号]
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
[编译模式是老模板模式还是新的自定义组件模式?]
App运行环境说明
[Android版本号] MIUI 10.3 android 9
[iOS版本号]
[手机型号]
[模拟器型号]
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
[可重现代码片段]
联系方式
[QQ] 910297279