From 006d13af6a9b307021a1f64107277903b18230dd Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Tue, 28 Feb 2023 15:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=96=8F=E5=AF=86=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=95=B0=E6=8D=AE=E4=B8=8B=E5=8F=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FusionSettings/DensityCorrection.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/FusionSettings/DensityCorrection.vue b/src/components/FusionSettings/DensityCorrection.vue index a404e55..4b7d531 100644 --- a/src/components/FusionSettings/DensityCorrection.vue +++ b/src/components/FusionSettings/DensityCorrection.vue @@ -398,13 +398,14 @@ export default defineComponent({ } }, { deep: true }) watch(() => value_v_point_amount, (newval, oldval) => { + console.log("🚀 ~ file: DensityCorrection.vue:401 ~ watch ~ newval:", newval) + setTimeout(() => { - if (now_v_h.value == 'level') { - set?.SetBlendingOption("blending_grids_select_ui", "hor_density") - } else { + if (now_v_h.value != 'level') { set?.SetBlendingOption("blending_grids_select_ui", "ver_density") + set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`) } - set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`) + save_set_cache() }, 100); }, { deep: true }) @@ -413,10 +414,8 @@ export default defineComponent({ setTimeout(() => { if (now_v_h.value == 'level') { set?.SetBlendingOption("blending_grids_select_ui", "hor_density") - } else { - set?.SetBlendingOption("blending_grids_select_ui", "ver_density") + set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`) } - set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`) save_set_cache() }, 100);