diff --git a/src/views/modules/shequzhili/csgltc/csglForm.vue b/src/views/modules/shequzhili/csgltc/csglForm.vue index 9a77ae15..63ab806f 100644 --- a/src/views/modules/shequzhili/csgltc/csglForm.vue +++ b/src/views/modules/shequzhili/csgltc/csglForm.vue @@ -242,8 +242,8 @@ export default { data : this.cityManagement } this.formData = { ...data } - const lat = this.formData.latitude === null || this.formData.latitude === '' ? '36.06203' : this.formData.latitude; - const lon = this.formData.longitude === null || this.formData.longitude === '' ? '120.38494' : this.formData.longitude; + const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude; + const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude; map.setCenter(new TMap.LatLng(lat,lon)) this.setMarker(lat,lon) } else { diff --git a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue index 9d0fb27f..963de114 100644 --- a/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue +++ b/src/views/modules/shequzhili/ggfwtc/ggfwForm.vue @@ -220,8 +220,8 @@ } this.formData = { ...data } - const lat = this.formData.latitude === null || this.formData.latitude === '' ? '36.06203' : this.formData.latitude; - const lon = this.formData.longitude === null || this.formData.longitude === '' ? '120.38494' : this.formData.longitude; + const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude; + const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude; map.setCenter(new TMap.LatLng(lat, lon)) this.setMarker(lat, lon) } else {