fix: condition close tab
This commit is contained in:
parent
57e61cf663
commit
38618e73c6
1 changed files with 3 additions and 1 deletions
|
|
@ -69,8 +69,10 @@ function close(index: number) {
|
||||||
}
|
}
|
||||||
customerBranch.value.splice(index, 1);
|
customerBranch.value.splice(index, 1);
|
||||||
|
|
||||||
|
console.log(index);
|
||||||
|
|
||||||
customerBranch.value.forEach((v, i) => {
|
customerBranch.value.forEach((v, i) => {
|
||||||
if (!!v.branchNo && v.branchNo >= index + 1) {
|
if (!!v.branchNo && v.branchNo > index + 1) {
|
||||||
v.branchNo = v.branchNo - 1;
|
v.branchNo = v.branchNo - 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue