Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在开发者模式里,微信小程序打开后,报错在app.json中声明permission字段 #6

Open
a820922716 opened this issue Jun 4, 2023 · 4 comments

Comments

@a820922716
Copy link

添加{
"pages": ["pages/index/index"],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位
}
}
}
后报错

@a820922716
Copy link
Author

小程序需要在app.json中声明permission scope.userlocation字段

@a820922716
Copy link
Author

好了,代码前加,

@a820922716
Copy link
Author

新问题上传代码。小程序启用组件按需注入未通过

@a820922716
Copy link
Author

新问题,上传出现[接口未正确配置:wx.getLocation(暂无权限)]

新问题上传代码。小程序启用组件按需注入未通过

app加{
"lazyCodeLoading": "requiredComponents"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant