From 65854cc8e592605face9992e4b9e3ea5d626893b Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Fri, 24 Jun 2022 10:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=BB=98=E8=AE=A4=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shequzhili/csgltc/csglForm.vue | 4 ++-- src/views/modules/shequzhili/ggfwtc/ggfwForm.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {