CN-1705 fix: 修复第一次拖动时间轴不更新图标位置的问题

This commit is contained in:
chenjinsong
2024-09-24 16:43:23 +08:00
parent 021af324f4
commit df9857ea16

View File

@@ -1688,11 +1688,6 @@ export default {
}
},
async minuteTimeFilterChange () {
// 避免初始化时请求,造成人的图标会闪一下
if (this.initFlag) {
this.initFlag = false
return
}
this.humanMarkers.forEach(marker => {
marker.remove && marker.remove()
})
@@ -1753,6 +1748,11 @@ export default {
},
// 时间轴改变时重新查询人marker
async minuteTimeFilter (n) {
// 避免初始化时请求,造成人的图标会闪一下
if (this.initFlag) {
this.initFlag = false
return
}
this.debounceMinuteChange?.()
},
// 切换追踪的用户