Browse Source

feat 增加延迟840

wangqin
qingzhengli 8 months ago
parent
commit
83d36e987d
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js

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

@ -238,6 +238,7 @@ export class MarkerCluster {
const reset = () => {
if (!window.openInfoWindow) {
// console.log(window.openInfoWindow, "rest");
this.infoWindow?.close?.();
}
};
@ -248,7 +249,7 @@ export class MarkerCluster {
if (window.openInfoWindow) {
console.log("窗口位移结束");
window.openInfoWindow = false;
await new Promise((resolve) => setTimeout(resolve, 340));
await new Promise((resolve) => setTimeout(resolve, 840));
window.infoWindow?.open?.();
}
});

Loading…
Cancel
Save