From 53d54d110dee19cfbf4220d67988dc95d693820e Mon Sep 17 00:00:00 2001 From: szdot Date: Thu, 25 Jul 2024 01:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afactor=20=E9=A3=9E=E6=9C=BA=E7=9A=84=E8=BD=A8=E8=BF=B9?= =?UTF-8?q?=20=E7=BA=BF=E6=9D=A1=E5=8A=A0=E7=B2=97=E5=88=B02=20=E3=80=90?= =?UTF-8?q?=E5=8E=9F=20=20=E5=9B=A0=E3=80=91=EF=BC=9A=E5=A4=AA=E7=BB=86?= =?UTF-8?q?=E7=9C=8B=E4=B8=8D=E6=B8=85=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B?= =?UTF-8?q?=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91?= =?UTF-8?q?=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MapBox.vue | 2 +- .../layout/components/main/planes/index.vue | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/components/MapBox.vue b/src/components/MapBox.vue index 24e9650..6d857c4 100644 --- a/src/components/MapBox.vue +++ b/src/components/MapBox.vue @@ -426,7 +426,7 @@ export default { }, paint: { 'line-color': 'purple', - 'line-width': 1 + 'line-width': 2 } }) } diff --git a/src/views/layout/components/main/planes/index.vue b/src/views/layout/components/main/planes/index.vue index 92b16ec..76c200d 100644 --- a/src/views/layout/components/main/planes/index.vue +++ b/src/views/layout/components/main/planes/index.vue @@ -62,6 +62,7 @@ export default { * @description: 创建飞机图标 */ makePlane (plane) { + console.log('hi') let planeDefaultLngLat if (localStorage.getItem(plane.name)) { // 从本地缓存 拿飞机得初始位置 planeDefaultLngLat = JSON.parse(localStorage.getItem(plane.name)) @@ -128,19 +129,24 @@ export default { } }, deep: true - }, + } /** * @description: 侧边栏缩进有变化时 地图重新自适应 */ - isCollapse: { - handler (val) { - if (val) { - setTimeout(() => { - this.mapBoxKey++ // 更新mapBoxKey以触发map-box组件的重新渲染 - }, 500) - } - } - } + // isCollapse: { + // handler (val) { + // if (val) { + // setTimeout(() => { + // this.mapBoxKey++ // 更新mapBoxKey以触发map-box组件的重新渲染 + // }, 500) + // setTimeout(() => { + // if (this.plane) { + // this.makePlane(this.plane) // 创建飞机图标 + // } + // }, 1500) + // } + // } + // } } }