From 13d71b2a6bb897db82b967d01a75e9ee8e6019a1 Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Fri, 3 Feb 2023 11:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=96=8F=E5=AF=86=E6=A0=A1?= =?UTF-8?q?=E6=AD=A3=E7=82=B9=E4=B8=8D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FusionSettings/DensityCorrection.vue | 17 +++++++++++++++++ src/i18n/en-US/index.ts | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/FusionSettings/DensityCorrection.vue b/src/components/FusionSettings/DensityCorrection.vue index 6eaea61..90d89f8 100644 --- a/src/components/FusionSettings/DensityCorrection.vue +++ b/src/components/FusionSettings/DensityCorrection.vue @@ -261,6 +261,20 @@ export default defineComponent({ const ste_status = ref(0); //为了加载 缓存的配置时 同步点的位置 const syncpoint = () => { + let x = 0 + let y = 0 + for (let index = 0; index < 5; index++) { + x = default_location[index].x; + y = Math.ceil((config.height - value[index].y) / Proportion.value.y); + setdianposin(index, x, y); + } + + for (let index = 5; index < 10; index++) { + x = Math.ceil(value[index].x / Proportion.value.x); + y = default_location[5].y; + setdianposin(index, x, y); + } + for (let index = 0; index < value.length; index++) { isactivearray.value[index] = false; } @@ -450,6 +464,7 @@ export default defineComponent({ } }; + onMounted(() => { initialization(); Proportion.value.x = config.width / (div.value.offsetWidth - 40); @@ -470,6 +485,8 @@ export default defineComponent({ Width * (index - 5); } } + use_server_config(); + syncpoint(); }); //窗口变动重新渲染 diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index b56efd6..4fefa64 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -441,7 +441,7 @@ export default { "Please select an override":"Please select an override", "confirm delete":"confirm delete", "delete or not":"delete or not", - "debugging":"debugging", + "debugging":"Debugging", "disable_blending":"disable blending", "disable_clip":"disable clip", "show_mask":"hide desktop",