fix: 修复初始化后首次点击时间轴没有调用接口的问题
This commit is contained in:
@@ -1359,12 +1359,14 @@ export default {
|
||||
this.initDropdownList(curVal)
|
||||
},
|
||||
mapTimeLineChange (timeFilter) {
|
||||
console.log('时间轴改变', timeFilter)
|
||||
this.minuteTimeFilter = {
|
||||
startTime: getSecond(timeFilter.startTime),
|
||||
endTime: getSecond(timeFilter.endTime)
|
||||
}
|
||||
},
|
||||
async minuteTimeFilterChange () {
|
||||
console.log('change点击')
|
||||
// 避免初始化时请求,造成人的图标会闪一下
|
||||
if (this.initFlag) {
|
||||
this.initFlag = false
|
||||
@@ -1373,11 +1375,11 @@ export default {
|
||||
marker.remove && marker.remove()
|
||||
})
|
||||
this.humanMarkers = []
|
||||
}
|
||||
|
||||
const mapFollowedSubscriberData = await this.queryMapFollowedSubscriber()
|
||||
if (mapFollowedSubscriberData.length > 0) {
|
||||
this.renderMarker(mapFollowedSubscriberData, this.tooltipType.human)
|
||||
}
|
||||
const mapFollowedSubscriberData = await this.queryMapFollowedSubscriber()
|
||||
if (mapFollowedSubscriberData.length > 0) {
|
||||
this.renderMarker(mapFollowedSubscriberData, this.tooltipType.human)
|
||||
}
|
||||
},
|
||||
onResize () {
|
||||
@@ -1431,6 +1433,7 @@ export default {
|
||||
},
|
||||
// 时间轴改变时,重新查询人marker
|
||||
async minuteTimeFilter (n) {
|
||||
console.log('嗯哼?', n)
|
||||
this.debounceFunc?.()
|
||||
},
|
||||
// 切换追踪的用户
|
||||
|
||||
Reference in New Issue
Block a user