Compare commits

..

No commits in common. "937b597a2e57ceb642fc9f9800d3c2d1dadfc1d1" and "9f10e9c841c88a7fcace8a2dbca3e120bb3783a2" have entirely different histories.

1 changed files with 2 additions and 5 deletions

View File

@ -170,12 +170,9 @@ const save = () => {
) )
} }
const removeTableRow = (row: any) => { const removeTableRow = (row: any) => {
const index = list.value.findIndex(item => item === row); list.value = list.value.filter((item: any) => item.id !== row.id);
if (index !== -1) {
list.value.splice(index, 1);
calculateTotalPrices(); calculateTotalPrices();
} }
}
const pageNum = ref<any>(1) const pageNum = ref<any>(1)
const pageSize = ref<any>(20) const pageSize = ref<any>(20)
const total = ref<any>(0) const total = ref<any>(0)