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",