diff --git a/src/views/dataBoard/cpts/map/index.vue b/src/views/dataBoard/cpts/map/index.vue index 722d34d2a..9e9bf3704 100644 --- a/src/views/dataBoard/cpts/map/index.vue +++ b/src/views/dataBoard/cpts/map/index.vue @@ -551,8 +551,12 @@ export default { `); scene.addPopup(popup); }); + polygonLayer.on("mouseout", (e) => { - popup.remove(); + // 如果popup初始化没成功报错导致地图初始化失败 + if(popup){ + popup.remove(); + } }); polygonLayer.on("click", (e) => { if (this.level === "grid") {