问题场景在两个不同的页面分别使用bindPopup与bindSheet弹出相同的弹窗,点击弹窗中的按钮跳转H5页面,其中bindPopup会闪退,报错Error message:Cannot read property resourceManager of undefined SourceCode:const resourceManager = context.resourceManager; getContext()获取不到。而bindSheet正常打开h5页面getContext()获取不到,导致resourceManager 为undefined在ability内使用this.context在ui侧可使用getcontext
问题场景
在两个不同的页面分别使用bindPopup与bindSheet弹出相同的弹窗,点击弹窗中的按钮跳转H5页面,其中bindPopup会闪退,报错Error message:Cannot read property resourceManager of undefined SourceCode:const resourceManager = context.resourceManager; getContext()获取不到。而bindSheet正常打开h5页面
getContext()获取不到,导致resourceManager 为undefined
在ability内使用this.context
在ui侧可使用getcontext