refactor: ให้ ส่ง index ด้วย
This commit is contained in:
parent
a600e52b08
commit
2296a65c80
1 changed files with 2 additions and 2 deletions
|
|
@ -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)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue