From 7c878747ff41732084f630a211c2789b7b0ffef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 26 May 2023 11:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/modify/modify.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/modify/modify.vue b/pages/modify/modify.vue index ffe43b6..004e00d 100644 --- a/pages/modify/modify.vue +++ b/pages/modify/modify.vue @@ -182,10 +182,12 @@ appPersonal(value).then(Response => { if (Response.code == 200) { that.appPersonallist = Response.data - that.appPersonallist.homeLatitude ? that.appPersonallist.homeLatitude = Number(that - .appPersonallist.homeLatitude) : that.appPersonallist.homeLatitude = null - that.appPersonallist.homeLongitude ? that.appPersonallist.homeLongitude = Number(that - .appPersonallist.homeLongitude) : that.appPersonallist.homeLongitude = null + that.appPersonallist.homeLatitude == 0 ? that.appPersonallist.homeLatitude = null : that + .appPersonallist.homeLatitude = Number(that + .appPersonallist.homeLatitude) + that.appPersonallist.homeLongitude == 0 ? that.appPersonallist.homeLongitude = null : that + .appPersonallist.homeLongitude = Number(that + .appPersonallist.homeLongitude) if (that.appPersonallist.headPictureUrl) { that.img = baseurl + that.appPersonallist.headPictureUrl }