chooseMedia:fail 授权失败?
报错信息: chooseMedia:fail privacy permission is not authorized 源代码: wx.chooseMedia({
count: 1,
mediaType: ['image'],
sourceType: ['album'],
success(res) {
console.log('choose res:', res);
const tempFilePaths = res.tempFiles[0].tempFilePath;
that.setData({
selectedImage: tempFilePaths, // 保存选中的图片路径
});
console.log('selected image:', that.data.selectedImage);
},
fail(res) {
console.log('fail', res);
}
});
输出截图: [图片]