BUG优化 例会照片显示undefined

dev
xiepeng 2024-06-04 18:04:10 +08:00
parent 9ece5af3a0
commit 628ed4d47a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
//