diff --git a/frontend/front/src/views/pages/enterpriseGasStation/enterpriseGasMap/index.vue b/frontend/front/src/views/pages/enterpriseGasStation/enterpriseGasMap/index.vue index 412fcdc..21a9f9d 100644 --- a/frontend/front/src/views/pages/enterpriseGasStation/enterpriseGasMap/index.vue +++ b/frontend/front/src/views/pages/enterpriseGasStation/enterpriseGasMap/index.vue @@ -432,12 +432,12 @@ export default { // center: this.centerPoint,//初始化地图中心点 // }); // ===========天地图代码============== - // if(!this.map){ + if(!this.map){ // 防止二次初始化导致拖拽失效 this.map = new T.Map('mapContainer',{ projection: 'EPSG:900913' }); - // } + } this.map.centerAndZoom(new T.LngLat(this.centerPoint[0], this.centerPoint[1]), 15); //允许鼠标双击放大地图 this.map.enableScrollWheelZoom(); -- libgit2 0.21.2