From 063d9d865271bf1c05401398990f52729c10b1ff Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Wed, 8 Feb 2023 15:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D4=E7=82=B9=E6=A0=A1=E6=AD=A3?= =?UTF-8?q?=E5=85=88=E6=8B=96=E5=8A=A8=E5=9C=A8=E4=BD=BF=E7=94=A8=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E7=A7=BB=E5=8A=A8=E6=97=B6=E4=BD=8D=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FusionSettings/FourPointCalibration.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/FusionSettings/FourPointCalibration.vue b/src/components/FusionSettings/FourPointCalibration.vue index d879f86..6a231b8 100644 --- a/src/components/FusionSettings/FourPointCalibration.vue +++ b/src/components/FusionSettings/FourPointCalibration.vue @@ -528,6 +528,9 @@ export default defineComponent({ four[0].x = x > config.width ? config.width : x && x < 0 ? 0 : x; four[0].y = y > config.height ? config.height : y && y < 0 ? 0 : y; isactivearray.value[0] = true; + points[now_index.value].x = data.left + points[now_index.value].y = data.top + save_set_cache(); }; const moveHandler_2 = (data: any) => { @@ -539,6 +542,8 @@ export default defineComponent({ ); four[1].x = x > config.width ? config.width : x && x < 0 ? 0 : x; four[1].y = y > config.height ? config.height : y && y < 0 ? 0 : y; + points[now_index.value].x = data.left + points[now_index.value].y = data.top save_set_cache(); }; const moveHandler_3 = (data: any) => { @@ -550,6 +555,8 @@ export default defineComponent({ ); four[2].x = x > config.width ? config.width : x && x < 0 ? 0 : x; four[2].y = y > config.height ? config.height : y && y < 0 ? 0 : y; + points[now_index.value].x = data.left + points[now_index.value].y = data.top save_set_cache(); }; const moveHandler_4 = (data: any) => { @@ -561,6 +568,8 @@ export default defineComponent({ ); four[3].x = x > config.width ? config.width : x && x < 0 ? 0 : x; four[3].y = y > config.height ? config.height : y && y < 0 ? 0 : y; + points[now_index.value].x = data.left + points[now_index.value].y = data.top save_set_cache(); }; //窗口变动重新渲染