From 46be72e0138bd25774a9e210c2d27c8e22745e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Sat, 20 Apr 2024 15:30:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/board/senso/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/board/senso/index.vue b/ruoyi-ui/src/views/board/senso/index.vue index a453eaf..24fcfb2 100644 --- a/ruoyi-ui/src/views/board/senso/index.vue +++ b/ruoyi-ui/src/views/board/senso/index.vue @@ -208,6 +208,7 @@ export default { }, setPolyline1(e) { polyline1 && map.remove(polyline1); + console.log(polyline1); polyline1 = new AMap.Polyline({ path: e, strokeColor:'#000', @@ -250,8 +251,9 @@ export default { return null } }).filter(res => res) + console.log(markersData); this.setPolyline1(markersData.map(v => { - return v._position + return v?._position ? v._position : [] })) } else if (endMarker && startMarker) { startMarkerhs = e.target.hS