修复数据发送顺序不对导致的问题

This commit is contained in:
shefengchun 2023-02-28 14:04:01 +08:00
parent 593323a934
commit a87b1bc380
1 changed files with 9 additions and 4 deletions

View File

@ -293,7 +293,6 @@ export default defineComponent({
def_x: def_x_f.x, def_x: def_x_f.x,
def_y: def_x_f.y def_y: def_x_f.y
} }
value_h_point.value.push(tmp_point) value_h_point.value.push(tmp_point)
} }
@ -399,22 +398,28 @@ export default defineComponent({
} }
}, { deep: true }) }, { deep: true })
watch(() => value_v_point_amount, (newval, oldval) => { watch(() => value_v_point_amount, (newval, oldval) => {
set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`) setTimeout(() => {
if (now_v_h.value == 'level') { if (now_v_h.value == 'level') {
set?.SetBlendingOption("blending_grids_select_ui", "hor_density") set?.SetBlendingOption("blending_grids_select_ui", "hor_density")
} else { } else {
set?.SetBlendingOption("blending_grids_select_ui", "ver_density") set?.SetBlendingOption("blending_grids_select_ui", "ver_density")
} }
set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`)
save_set_cache() save_set_cache()
}, 100);
}, { deep: true }) }, { deep: true })
watch(() => value_h_point_amount, (newval, oldval) => { watch(() => value_h_point_amount, (newval, oldval) => {
set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`)
if (now_v_h.value == 'level') { setTimeout(() => {
if (now_v_h.value == 'level') {
set?.SetBlendingOption("blending_grids_select_ui", "hor_density") set?.SetBlendingOption("blending_grids_select_ui", "hor_density")
} else { } else {
set?.SetBlendingOption("blending_grids_select_ui", "ver_density") set?.SetBlendingOption("blending_grids_select_ui", "ver_density")
} }
set?.SetBlendingOption("blending_grids_control_point_count", `${newval.value}`)
save_set_cache() save_set_cache()
}, 100);
}, { deep: true }) }, { deep: true })
watch(() => options_model_h, (newval, oldval) => { watch(() => options_model_h, (newval, oldval) => {