修改删除逻辑

main
scrin 1 month ago
parent 3394340fea
commit 6aa2d9dafb

@ -1035,6 +1035,9 @@ const delPoint = (e) => {
let arr = JSON.parse(JSON.stringify(tableData1.value)) let arr = JSON.parse(JSON.stringify(tableData1.value))
arr.splice((currentPage1.value - 1) * pageSize1.value + e.$index, 1); arr.splice((currentPage1.value - 1) * pageSize1.value + e.$index, 1);
tableData1.value = arr ||[] tableData1.value = arr ||[]
if(e.index ===dotIndex.value ){
dotIndex.value = -1
}
} }
// //
const currentPage1 = ref(1) const currentPage1 = ref(1)

Loading…
Cancel
Save