uniapp开发的微信小程序审核代码提示wx.getLocation暂未配置
2022-08-17 Vue 3251
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxxxxxxxxxxxxxxxxxxxxx",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true,
"lazyCodeLoading": "requiredComponents",
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于工作打卡位置定位"
}
},
/* 在这里添加 */
"requiredPrivateInfos": [
"getLocation"
]
},在app.json中添加:
"requiredPrivateInfos": [ "getLocation" ]
很赞哦! (0)
相关文章
- uni-app 复制、粘贴
- uniapp输入框设置光标颜色
- uni-load-more Some selectors are not allowed in component wxss,
- 使用uni-popup弹警告slot ““ is not found
- 不要轻易删除或者改变数组列表形态
- uni-app navigateTo、reLaunch、redirectTo、switchTab区别
- Vue 3.0 第四章 vuex
- Vue 3.0 第二章 vue使用slot
- vue : 无法加载文件 F:\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本”的解决方法
- Vue -yarn 打包命令
文章评论
-
-
-
0条评论