Browse Source

fix #3196 bug 清除lngLatMap

wangqin
qingzhengli 8 months ago
parent
commit
0611e487d6
  1. 1
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

1
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue

@ -182,6 +182,7 @@ export default {
},
beforeDestroy() {
this.emitter.off("selectedCompleted", this.selectedCompletedHandle);
Object.keys(lngLatMap).forEach(key => delete lngLatMap[key]);
},
methods: {
selectedCompletedHandle(item) {

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

@ -250,7 +250,7 @@ export class MarkerCluster {
if (window.openInfoWindow) {
// console.log("窗口位移结束", new Date());
window.openInfoWindow = false;
// window.infoWindow?.open?.();
// !window.infoWindow.getIsOpen() && window.infoWindow?.open?.();
}
});

Loading…
Cancel
Save