From 7216ba8ea2bb70f458cda4bdbdb241555b94c0bc Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Thu, 16 Apr 2026 17:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=92=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tool.js | 4 ++-- src/views/index.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/tool.js b/src/utils/tool.js index dd4dfd1..038408a 100644 --- a/src/utils/tool.js +++ b/src/utils/tool.js @@ -10,7 +10,7 @@ function lonLatToXY(lon, lat, lat0) { function calcRectangleFromPoints(points) { if (!points || points.length !== 4) { - console.log("必须传入4个点"); + // console.log("必须传入4个点"); return } const p1raw = points.find(p => p.name === "点位1") || points[0]; @@ -46,7 +46,7 @@ function calcRectangleFromPoints(points) { function getLocalPositionRelativeToP4(point, rectPoints, rectInfo) { if (!rectInfo || typeof rectInfo.angle !== 'number') { - console.log("rectInfo.angle 必须是由 calcRectangleFromPoints 得到的角度"); + // console.log("rectInfo.angle 必须是由 calcRectangleFromPoints 得到的角度"); return } diff --git a/src/views/index.vue b/src/views/index.vue index 7555207..48856b3 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1420,7 +1420,8 @@ const processData = (data) => { }; const local = correctDeviation(getLocalPositionRelativeToP4(point, areaPoints.value, rectInfo)) - // console.log(rectInfo) + console.log('rectInfo', rectInfo) + console.log('local', local) boxPos.value = local }