diff --git a/pages/application/safetymeeting/safetymeeting-detail.vue b/pages/application/safetymeeting/safetymeeting-detail.vue index 587ea69..2d22d0c 100644 --- a/pages/application/safetymeeting/safetymeeting-detail.vue +++ b/pages/application/safetymeeting/safetymeeting-detail.vue @@ -363,7 +363,8 @@ type: 'gcj02', geocode: true, success: function (res) { - const locationAddress = `${res.address.province}${res.address.city}${res.address.district}${res.address.street}${res.address.streetNum}${res.address.poiName}`; + let locationAddress = `${res.address.province}${res.address.city}${res.address.district}${res.address.street}${res.address.streetNum}${res.address.poiName}`; + locationAddress = locationAddress.replace(/undefined/g,'') _this.longitude = res.longitude; _this.latitude = res.latitude; // 循环上传签字图片