试过:
this.$nextTick(() => { this.initMap() })
最后处理:
setTimeout(() => { this.initMap() }, 100);
暂时没有想到好的方法