From df9857ea16bc9840d92f6ab25ab41593f034a524 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 24 Sep 2024 16:43:23 +0800 Subject: [PATCH] =?UTF-8?q?CN-1705=20fix:=20=E4=BF=AE=E5=A4=8D=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E6=8B=96=E5=8A=A8=E6=97=B6=E9=97=B4=E8=BD=B4?= =?UTF-8?q?=E4=B8=8D=E6=9B=B4=E6=96=B0=E5=9B=BE=E6=A0=87=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index c7a6a0ea..0dfa4ed8 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -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?.() }, // 切换追踪的用户