wx.openSetting回调中打不开?
发布于 6 年前 作者 juanchang 2347 次浏览 来自 官方Issues
clickLocationBtn(){
   wx.authorize({
     scope: 'scope.userLocation',
     success() { the.getLocation(); },
     fail() {
       wx.openSetting({
         success(res) {
           console.log(res)
         },
         fail(res) {
           console.log(res)
         }
       })
     }
   });
 },
2 回复

建议拒绝授权的时候 再弹出个弹窗 showModal。点击确定调用 wx.openSetting()

回到顶部