华为手机调用wx.getUserProfile 报错
<button bindtap=“onKeyLogin”>授权登录</button>
onKeyLogin(e) {
console.log("触发授权事件")
wx.getUserProfile({
desc:'同意授权',//不写不弹提示框
success:function(resData){
console.log("授权成功")
},
fail:function(err){
console.log("授权失败")
}
})