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) + // } + // } + // } } }