在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" ] },
标签:uniapp,getLocation,false,程序,接口,提审,requiredPrivateInfos,true From: https://www.cnblogs.com/louqianzhu/p/16891355.html