uni.getSetting({ success: ({ authSetting }) => { console.log(authSetting) } })
- 发布:2021-11-20 11:47
- 更新:2021-11-20 11:47
- 阅读:745
产品分类: uniapp/小程序/阿里
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 专业版
第三方开发者工具版本号: Version 2.5.3
基础库版本号: 2.0.0-alpha-32920211110002
项目创建方式: CLI
CLI版本号: 4.5.15
操作步骤:
预期结果:
uni.getSetting({ success: ({ authSetting }) => { console.log(authSetting) } })
// authSetting => { 'scope.userLocation': true }
uni.getSetting({ success: ({ authSetting }) => { console.log(authSetting) } })
// authSetting => { 'scope.userLocation': true }
实际结果:
uni.getSetting({ success: ({ authSetting }) => { console.log(authSetting) } })
// authSetting => { 'location': true }
uni.getSetting({ success: ({ authSetting }) => { console.log(authSetting) } })
// authSetting => { 'location': true }
bug描述:
调用uni.getSetting,期望返回 UniApp.AuthSetting
接口所定义的属性名,但获取到的属性名不一致。比如希望获取到'scope.userLocation': true
,但实际获取'location': true
0 个回复