From 7c40e28b5287efad97e4a158522b620811febba4 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期四, 15 十二月 2022 16:42:12 +0800 Subject: [PATCH] 地图组件及趋势分析页面修改 --- src/components/map/index.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/map/index.vue b/src/components/map/index.vue index 2311dae..a39ac2e 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -12,6 +12,7 @@ }; }, created() { + debugger // if (this.point) { // this._point = this.point; // } @@ -22,10 +23,11 @@ methods: { locationMap() { const that = this; + debugger setTimeout(() => { - console.log("_zoom---", that._zoom); - console.log("_point---", JSON.stringify(that._point)); - that.map.setZoomAndCenter(that._zoom, [that._point.x, that._point.y]); + // console.log("_zoom---", that.zoom); + // console.log("_point---", JSON.stringify(that.point)); + that.map.setZoomAndCenter(that._zoom, [that.point.x, that.point.y]); if (that.mark) { // 鍒涘缓涓�涓� Marker 瀹炰緥锛� var marker = new AMap.Marker({ -- Gitblit v1.8.0