fix: branchNo on remove in form

This commit is contained in:
Methapon2001 2024-07-30 11:01:33 +07:00
parent 38618e73c6
commit 05bd4c583b

View file

@ -68,14 +68,6 @@ function close(index: number) {
}
}
customerBranch.value.splice(index, 1);
console.log(index);
customerBranch.value.forEach((v, i) => {
if (!!v.branchNo && v.branchNo > index + 1) {
v.branchNo = v.branchNo - 1;
}
});
}
onMounted(() => {