uniapp-小程序-提审显示地理位置接口未配置

   在manifest.json的源码视图中添加即可:  
  需要哪些就增加哪些 获取两个getLocation、chooseAddress

"requiredPrivateInfos":[
  "getLocation",
  "chooseAddress"
],

/* 小程序特有相关 */
    "mp-weixin" : {
        "appid" : "wx7e299c8468c9eb51",
        "setting" : {
            "urlCheck" : false,
            "minified" : true,
            "postcss" : true,
            "es6" : true
        },
        "usingComponents" : true,
        "uniStatistics" : {
            "enable" : false
        },
        "permission" : {
            "scope.userLocation" : {
                "desc" : "你的位置信息将用于小程序位置接口的效果展示"
            }
        },
        "requiredPrivateInfos" : [ "getLocation" ]
    },

  

posted @ 2022-11-15 09:23  楼前竹  阅读(110)  评论(0)    收藏  举报