使用uni.authorize时候控制台报错TypeError: Cannot read property '0' of undefined
但是功能可以正常实现

使用uni.authorize时候控制台报错TypeError: Cannot read property '0' of undefined
但是功能可以正常实现
2***@qq.com (作者)
uni.authorize({
scope: 'scope.userLocation',
success() {
that.doGetLocation();
},
fail() {
uni.showToast({
title: '授权失败,请手动设置',
icon: 'none'
});
}
});