path of undefined;at lifeCycleMethod
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
- 当前 Bug 的表现
调用“wx.chooseImage || wx.previewImage”时候出现
VM12389:1 thirdScriptError
Cannot read property ‘path’ of undefined;at App lifeCycleMethod onHide function
TypeError: Cannot read property ‘path’ of undefined
- 预期表现
//不报错
- 提供一个最简复现 Demo
previewImage(e) { console.log(`showEvent:${JSON.stringify(e)}`) let current = [e.target.dataset.src]; //预览图片 wx.previewImage({ current: current[0], urls: current, }); |