Prechádzať zdrojové kódy

fix: 默认地图居中

zh 2 rokov pred
rodič
commit
f9cad25ebd

+ 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')