凌的博客

您现在的位置是: 首页 > 前端学习 > Vue > 

Vue

uniapp开发的微信小程序审核代码提示wx.getLocation暂未配置

2022-08-17 Vue 1427
    /* 小程序特有相关 */
    "mp-weixin" : {
        "appid" : "wxxxxxxxxxxxxxxxxxxxxx",
        "setting" : {
            "urlCheck" : false
        },
        "usingComponents" : true,
		"lazyCodeLoading": "requiredComponents",
        "permission" : {
            "scope.userLocation" : {
                "desc" : "你的位置信息将用于工作打卡位置定位"
            }			
        },
         /* 在这里添加 */
	"requiredPrivateInfos": [
	    "getLocation"
	]
		
    },

在app.json中添加:

	"requiredPrivateInfos": [
	    "getLocation"
	]




文章评论

0条评论