Merge branch 'oat_dev' into develop

This commit is contained in:
oat_dev 2024-06-06 13:56:59 +07:00
commit ba3bbd0ea7

View file

@ -37,8 +37,11 @@ function addData() {
} }
function close(index: number) { function close(index: number) {
console.log(customerBranch.value.length, index); if (customerBranch.value.length === 1) return;
if (customerBranch.value.length - 1 === index) {
if (customerBranch.value.length === index + 1) {
tab.value = tab.value - 1;
} else if (tab.value >= index) {
tab.value = tab.value - 1; tab.value = tab.value - 1;
} }
@ -66,7 +69,7 @@ function close(index: number) {
:key="index" :key="index"
:name="index" :name="index"
:label="`${$t('customerBranchFormTab')} ${index + 1}`" :label="`${$t('customerBranchFormTab')} ${index + 1}`"
@click="tab = index" @click="(tab = index), console.log(customerBranch)"
no-caps no-caps
> >
<q-btn <q-btn