https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html 在app.json配置一下。
"permission"
: {
"scope.userLocation"
"desc"
:
"你的位置信息将用于小程序位置接口的效果展示"
// 高速公路行驶持续后台定位
}
根据报错找文档
https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html
这提示不是写的一清二楚吗
"您的位置信息将用于xxxxxx"
},
app.json里面加上这么一段