From 71a52544ca1c01584c953b800f771ce61b54c523 Mon Sep 17 00:00:00 2001 From: tk Date: Thu, 25 Jul 2024 14:40:38 +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=9Afix=20=20=E9=87=8D=E6=96=B0=E8=B0=83=E6=95=B4=E5=85=A8?= =?UTF-8?q?=E5=B1=8F=20=E7=BC=A9=E6=94=BE=E8=8F=9C=E5=8D=95=E6=A0=8F=20?= =?UTF-8?q?=E7=9A=84=E5=BB=B6=E6=97=B6=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0?= =?UTF-8?q?=E3=80=91=EF=BC=9A=E8=8F=9C=E5=8D=95=E6=A0=8F=E7=BC=A9=E6=94=BE?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E9=9C=80=E8=A6=81=E6=97=B6=E9=97=B4=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=AE=8C=E5=85=A8=E5=B1=95=E5=BC=80=20=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=9C=B0=E5=9B=BE=20=20=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E4=BC=9A=E7=BC=BA=E5=A4=B1=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 | 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 595d2ea..d5bda49 100644 --- a/src/components/MapBox.vue +++ b/src/components/MapBox.vue @@ -561,7 +561,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() } } }