wx.authorize

发布于 7 年前作者 jun4610464 次浏览最后编辑 7 年前来自 ask

wx.authorize调用直接走fail怎么解决

wx.authorize({

scope: ‘scope.userLocation’,

success(){

console.log(999)

},fail(){

console.log(888)

}

})

直接打印出888也没用弹窗口

1 回复
jsong
jsong1 楼5 年前

用户拒绝授权之后,一段时间内不会重新弹出授权。工具中可以使用清缓存->清除授权数据重置一下。