From 900cf230552630cfafd2b881135613cfb2707caf Mon Sep 17 00:00:00 2001 From: NiuZiYuan Date: Fri, 23 May 2025 10:25:20 +0800 Subject: [PATCH] dev --- src/components/settings/item/group/GroupAdd.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/settings/item/group/GroupAdd.vue b/src/components/settings/item/group/GroupAdd.vue index f6a6536..863dc14 100644 --- a/src/components/settings/item/group/GroupAdd.vue +++ b/src/components/settings/item/group/GroupAdd.vue @@ -170,8 +170,11 @@ const save = () => { ) } const removeTableRow = (row: any) => { - list.value = list.value.filter((item: any) => item.id !== row.id); - calculateTotalPrices(); + const index = list.value.findIndex(item => item === row); + if (index !== -1) { + list.value.splice(index, 1); + calculateTotalPrices(); + } } const pageNum = ref(1) const pageSize = ref(20)