1***@qq.com
1***@qq.com
  • 发布:2025-06-18 17:55
  • 更新:2025-06-19 17:17
  • 阅读:33

uni.chooseLocation address返回空

分类:uni-app

只有个别手机出现了返回空的问题
uni.chooseLocation({
success: function(res) {
console.log(res, '---地址')
if (res.name) {
t.onAddressParses(res.address)
t.addressInfo = res.address
t.selectCity = res.name
t.coordinate = ${res.longitude},${res.latitude}
} else {
uni.showToast({
title: '未选择地址',
icon: 'none'
})
}
}
});

2025-06-18 17:55 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

hello , 你可以联系一下你的地图厂商,排查一下这个请求返回的地址为何为空

要回复问题请先登录注册