page,onload中调用下面的接口,
预览,
1、打开设置后会自动退出,看log会打印出两次“onLoad===== get UserInfo setting false”,请问怎么回事?
2、有时候不能打开,log为“onLoad===== openSetting fai”,请您看看?
wx.openSetting({//打开设置
success: (res) => {
if (res.authSetting['scope.userInfo']) {//允许
console.log("onLoad===== get UserInfo setting true");
} else {//拒绝
console.log("onLoad===== get UserInfo setting false");
}
},
fail: (res) => {
console.log("onLoad===== openSetting fail");
}
})
开发者工具:1711300版本
手机:11.2 iphone6