Quellcode durchsuchen

fix: 默认地图居中

zh vor 2 Jahren
Ursprung
Commit
f9cad25ebd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/views/commercialEngineering/components/base.vue

+ 1 - 1
src/views/commercialEngineering/components/base.vue

@@ -515,7 +515,7 @@ export default {
             }
           ]
         }
-
+        this.center = [this.formData.lnt, this.formData.lat]
         await this.getCallbackPosition(0, this.formData.provinceId, 'province', 'id')
         await this.getCallbackPosition(this.formData.provinceId, this.formData.cityId, 'city', 'id')
         await this.getCallbackPosition(this.formData.cityId, this.formData.areaId, 'area', 'id')