From 0811de44c3e1e8e9955cf35703fb91f500541618 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 5 Mar 2024 15:27:44 +0800 Subject: [PATCH] =?UTF-8?q?CN-1563=20fix:=20=E5=8E=BB=E6=8E=89=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=97=B6=E9=87=8D=E5=A4=8D=E7=9A=84=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index a009a02a..c642ed93 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -1224,7 +1224,11 @@ export default { }, // 时间轴改变时,重新查询人marker async minuteTimeFilter (n) { - this.debounceFunc?.() + if (!this.isInit) { + this.debounceFunc?.() + } else { + this.isInit = false + } }, // 切换追踪的用户 currentShowSubscriber (n) { @@ -1414,7 +1418,8 @@ export default { unitTypes, defaultZoom: 13, // 地图默认缩放比例 center: [116.38, 39.9], // 地图默认中心点。北京:[116.38, 39.9] 纽约:[-73.94539, 40.841843] - debounceFunc: shallowRef(null) + debounceFunc: shallowRef(null), + isInit: ref(true) // init标志 } }, unmounted () {