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 }