From 077324290c0b0a9eb54ac0c3fdca22df15ca16bd 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:17:10 +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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pages/modify/modify.vue b/pages/modify/modify.vue index 004e00d..571ef4e 100644 --- a/pages/modify/modify.vue +++ b/pages/modify/modify.vue @@ -182,12 +182,8 @@ appPersonal(value).then(Response => { if (Response.code == 200) { that.appPersonallist = Response.data - 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) + Number(that.appPersonallist.homeLatitude) > 0 ? that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude) : that.appPersonallist.homeLatitude = null + Number(that.appPersonallist.homeLongitude) > 0 ? that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude):that.appPersonallist.homeLongitude = null if (that.appPersonallist.headPictureUrl) { that.img = baseurl + that.appPersonallist.headPictureUrl }