From a600e52b08bdac4749837d9ee7206fa0ed54c2ca Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:17:59 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B9=81=E0=B8=81=E0=B9=89=20=20i1?= =?UTF-8?q?8n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TabComponent.vue | 4 +++- src/stores/customer/types.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/TabComponent.vue b/src/components/TabComponent.vue index ee9a4665..79bcfb34 100644 --- a/src/components/TabComponent.vue +++ b/src/components/TabComponent.vue @@ -17,6 +17,8 @@ const index = ref(0); function addData() { index.value++; customerBranch.value.push({ + code: '', + branchNo: undefined, address: '', addressEN: '', provinceId: '', @@ -91,7 +93,7 @@ function close(index: number) { v-for="(v, index) in customerBranch" :key="index" :name="index" - :label="`${$t('customerBranchFormTab')} ${index + 1}`" + :label="`${$t('customerBranchFormTab')} `" @click="tab = index" no-caps :class="tab === index ? '' : 'bordered-b bordered-r'" diff --git a/src/stores/customer/types.ts b/src/stores/customer/types.ts index 816d7156..bbc1ec58 100644 --- a/src/stores/customer/types.ts +++ b/src/stores/customer/types.ts @@ -63,7 +63,7 @@ export type CustomerBranch = { export type CustomerBranchCreate = { code?: string; - branchNo: number; + branchNo?: number; address: string; addressEN: string; provinceId?: string | null;