From a70c05e593b6eb2dd781b6bc07ca92ae38a3c947 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:36:02 +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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/board/senso/index.vue b/ruoyi-ui/src/views/board/senso/index.vue index 24fcfb2..bf5db8a 100644 --- a/ruoyi-ui/src/views/board/senso/index.vue +++ b/ruoyi-ui/src/views/board/senso/index.vue @@ -244,8 +244,14 @@ export default { }); map.add(endMarker); endMarkerhs = e.target.hS + let hs1 = startMarkerhs + let hs2 = endMarkerhs + if(startMarkerhs>endMarkerhs){ + hs1 = endMarkerhs + hs2 = startMarkerhs + } let markersData = markers.map(v => { - if (v.hS >= startMarkerhs && v.hS <= endMarkerhs) { + if (v.hS >= hs1 && v.hS <= hs2) { return v } else { return null