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();