diff --git a/src/pages-booking/index.vue b/src/pages-booking/index.vue index 1b4ab7b..c4da68f 100644 --- a/src/pages-booking/index.vue +++ b/src/pages-booking/index.vue @@ -133,6 +133,9 @@ const isDeleting = ref(false); // 标志位,防止删除时watch冲突 watch( quantity, async (newQuantity) => { + // 只有在酒店类型(orderType == 0)时才动态调整 userFormList + if (orderData.value.orderType !== 0) return; + // 如果正在执行删除操作,跳过watch逻辑 if (isDeleting.value) { isDeleting.value = false;