wx.openSetting回调中打不开?

发布于 8 年前作者 juanchang2557 次浏览最后编辑 8 年前来自 issues
clickLocationBtn(){
   wx.authorize({
     scope: 'scope.userLocation',
     success() { the.getLocation(); },
     fail() {
       wx.openSetting({
         success(res) {
           console.log(res)
         },
         fail(res) {
           console.log(res)
         }
       })
     }
   });
 },
2 回复
pengming
pengming1 楼6 年前

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