feat: 商品数量的计算问题
This commit is contained in:
@@ -128,11 +128,6 @@ const isDeleting = ref(false); // 标志位,防止删除时watch冲突
|
||||
watch(
|
||||
quantity,
|
||||
async (newQuantity) => {
|
||||
// 非酒店类型,不处理
|
||||
if (orderData.value.commodityTypeCode !== "0") {
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果正在执行删除操作,跳过watch逻辑
|
||||
if (isDeleting.value) {
|
||||
isDeleting.value = false;
|
||||
|
||||
Reference in New Issue
Block a user