feat: 只有酒店的时候才动态添加 用户信息

This commit is contained in:
2026-04-07 18:44:43 +08:00
parent 350ce56767
commit 620456e9bf

View File

@@ -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;