CN-1705 fix: 修复第一次拖动时间轴不更新图标位置的问题
This commit is contained in:
@@ -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?.()
|
||||
},
|
||||
// 切换追踪的用户
|
||||
|
||||
Reference in New Issue
Block a user