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