就是明明有摄像权限为什么下面这个方法判断是没摄像头权限了,然后跳转到权限页面也没有打开摄像头权限的?
wx.getSetting({
success: (res) => {
if (!res.authSetting["scope.camera"]) {
this.setData({
showModal: true,
})
} else {}
wx.getSetting({
success: (res) => {
if (!res.authSetting["scope.camera"]) {
this.setData({
showModal: true,
})
} else {}