获取位置权限:
代码语言:js复制getCamera() {
const that = this;
uni.authorize({
scope: 'scope.camera',
success() {
that.getAuth();
}
});
},
uniapp永久配置app.json 文件权限
代码语言:json复制"requiredPrivateInfos": [
"getLocation",
"chooseLocation"
]
最后解决!!!