From 2296a65c80e974f55621ec940d7648354f17e69a Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:13:23 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B9=83=E0=B8=AB=E0=B9=89=20?= =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=20index=20=E0=B8=94=E0=B9=89?= =?UTF-8?q?=E0=B8=A7=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_customer-management/CustomerInfoComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/03_customer-management/CustomerInfoComponent.vue b/src/components/03_customer-management/CustomerInfoComponent.vue index cd6c19c4..7189be2c 100644 --- a/src/components/03_customer-management/CustomerInfoComponent.vue +++ b/src/components/03_customer-management/CustomerInfoComponent.vue @@ -47,7 +47,7 @@ const prop = withDefaults( const emit = defineEmits<{ (e: 'back'): void; - (e: 'viewDetail', branch: CustomerBranch[]): void; + (e: 'viewDetail', branch: CustomerBranch, index: number): void; (e: 'dialog'): void; }>(); @@ -209,7 +209,7 @@ watch(currentStatus, async () => { status: 'ดำเนินการอยู่', totalEmployee: br._count?.employee, }" - @view-detail="emit('viewDetail', [br])" + @view-detail="emit('viewDetail', br, i)" />