在element对话框中使用地图插件时,会出现首次不会加载成功,这时使用$nextTick初始化地图插件即可
new_data() {
this.centerDialogVisible =true
// 在这里使用$nextTick初始化地图插件即可
this.$nextTick(() => {
this.init()
});
},