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(); }; //窗口变动重新渲染