地图初始未居中修复

main
xuechunyuan 3 years ago
parent 6cd0e04bd7
commit d80359684e
  1. 4
      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();

Loading…
Cancel
Save