fix: branchNo on remove in form
This commit is contained in:
parent
38618e73c6
commit
05bd4c583b
1 changed files with 0 additions and 8 deletions
|
|
@ -68,14 +68,6 @@ function close(index: number) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
customerBranch.value.splice(index, 1);
|
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(() => {
|
onMounted(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue