华为手机调用wx.getUserProfile 报错
<button bindtap=“onKeyLogin”>授权登录</button>
onKeyLogin(e) {
console.log("触发授权事件")
wx.getUserProfile({
desc:'同意授权',//不写不弹提示框
success:function(resData){
console.log("授权成功")
},
fail:function(err){
console.log("授权失败")
}
})![](https://image.wxopen.club/content_b513af94-8956-11eb-a369-001a7dda7111.jpg)![](https://image.wxopen.club/content_b53517b4-8956-11eb-9d23-001a7dda7111.jpg)