修复疏密调整数据下发错误

This commit is contained in:
shefengchun 2023-02-28 15:49:17 +08:00
parent 1eb926d029
commit 006d13af6a
1 changed files with 6 additions and 7 deletions

View File

@ -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}`)
}
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}`)
}
save_set_cache()
}, 100);