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 }