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 }