From a7080e7f1bba913c3e9c7e5ea65cf48aaa5c5e36 Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Mon, 12 Aug 2024 18:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4get-location=20=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/get-location/get-location.uvue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/API/get-location/get-location.uvue b/pages/API/get-location/get-location.uvue index a4742b53..d7d03fba 100644 --- a/pages/API/get-location/get-location.uvue +++ b/pages/API/get-location/get-location.uvue @@ -213,8 +213,10 @@ altitude: this.jest_isAltitude, isHighAccuracy: this.jest_isHighAccuracy, geocode: this.jest_isGeocode, - success: (res : any) => { - this.jest_address = res.address + success: (res : any) => { + if (res.address != null) { + this.jest_address = res.address! + } this.jest_longitude = res.longitude this.jest_latitude = res.latitude this.jest_altitude = res.altitude -- GitLab