From 06a524436e60e028f51d1eb200467560876f5c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 29 Mar 2023 16:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/realTimeMonitoring/historicalRoute/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/realTimeMonitoring/historicalRoute/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/historicalRoute/index.vue index bdef943..1af29f5 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/historicalRoute/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/historicalRoute/index.vue @@ -87,7 +87,7 @@ AMapLoader.load({ const handleQuery = () => { polyline ? map.remove([polyline]) : '' getTrack(proxy.addDateRange(queryParams.value, dateRange.value)).then(e => { - polylinePath.value = e.data.map(val => [val.longitude + (Math.random()), val.latitude + (Math.random())]) + polylinePath.value = e.data.map(val => [val.longitude, val.latitude]) polyline = new AMap.Polyline({ strokeColor: '#00BBFF', // 线颜色-深蓝色 path: polylinePath.value,