From b3e41420f0101c152573edcc5c7cd0e4755044cd Mon Sep 17 00:00:00 2001 From: tk Date: Thu, 25 Jul 2024 13:01:35 +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=20=E5=88=B7=E6=96=B0=E5=9C=B0=E5=9B=BE=20?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=BB=B6=E8=BF=9F=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91=EF=BC=9A=E5=AE=B9?= =?UTF-8?q?=E5=99=A8=E5=8F=98=E5=8C=96=E9=9C=80=E8=A6=81=E6=97=B6=E9=97=B4?= =?UTF-8?q?=20=20=E5=9C=A8=E5=AE=B9=E5=99=A8=E5=8F=98=E5=AE=BD=20=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=20=20=E5=86=8D=E5=88=B7=E6=96=B0=E5=9C=B0=E5=9B=BE=20?= =?UTF-8?q?=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=20=E3=80=90?= =?UTF-8?q?=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MapBox.vue | 4 +++- src/views/layout/components/main/planes/index.vue | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/MapBox.vue b/src/components/MapBox.vue index a44f453..4728f7d 100644 --- a/src/components/MapBox.vue +++ b/src/components/MapBox.vue @@ -562,7 +562,9 @@ export default { */ handleResize () { if (this.map) { - this.map.resize() + setTimeout(() => { + this.map.resize() + }, 300) } } }, diff --git a/src/views/layout/components/main/planes/index.vue b/src/views/layout/components/main/planes/index.vue index a621c7e..c46b036 100644 --- a/src/views/layout/components/main/planes/index.vue +++ b/src/views/layout/components/main/planes/index.vue @@ -135,9 +135,7 @@ export default { isCollapse: { handler (val) { if (val) { - setTimeout(() => { - this.$refs.mapbox.handleResize() - }, 500) + this.$refs.mapbox.handleResize() } } }