From 080206c1c51a6ff2b19f18f5f39bc905c5762f51 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 22 May 2024 11:56:20 +0800 Subject: [PATCH] =?UTF-8?q?res=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baidu/AppResidentAssistant/AppResidentAssistant.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/project/baidu/AppResidentAssistant/AppResidentAssistant.vue b/src/project/baidu/AppResidentAssistant/AppResidentAssistant.vue index 1ae6657..2b8ddea 100644 --- a/src/project/baidu/AppResidentAssistant/AppResidentAssistant.vue +++ b/src/project/baidu/AppResidentAssistant/AppResidentAssistant.vue @@ -97,9 +97,8 @@ export default { type: 'wgs84', // 返回可以用于uni.openLocation的经纬度,默认为wgs84的gps坐标 success : (res) => { let location = `${res.latitude}, ${res.longitude}` - console.log(location) this.$instance.post(`/admin/area/reverseGeocoding?location=${location}`).then(res => { - if(res.code == 0) { + if(res && res.code == 0){ this.areaId = res.data.result.addressComponent.adcode + '000000' } })