使用wx.chooseImage时小程序闪退重启

发布于 7 年前作者 cdong10348 次浏览最后编辑 7 年前来自 issues

wx.chooseImage({

count: 1,

sourceType: [‘album’, ‘camera’],

sizeType: [‘original’, ‘compressed’],

success: function (res) {

console.log(res.tempFiles[0].path)

that.setData({

image:res.tempFiles[0].path,

})

},

fail:function(res){

console.log(res)

console.log(“fail”)

}

})

1 回复
cye
cye1 楼5 年前

测试未复现问题,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html