From d80359684ec098e99e3fbf1856834c9e15ed647b Mon Sep 17 00:00:00 2001 From: xuechunyuan <17853500702@163.com> Date: Tue, 7 Feb 2023 17:36:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=88=9D=E5=A7=8B=E6=9C=AA?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/pathMap.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/components/pathMap.vue b/src/views/components/pathMap.vue index 855d3ab..368826f 100644 --- a/src/views/components/pathMap.vue +++ b/src/views/components/pathMap.vue @@ -61,7 +61,9 @@ export default { created() { }, mounted() { - this.initMap(); + setTimeout(() => { + this.initMap(); + }, 0); window.addEventListener('resize', () => { if (this.baiduMap) { this.backMap();