refactor: add gender

This commit is contained in:
Net 2024-09-05 16:12:01 +07:00
parent 88dd4d9333
commit 4f4de866b0
2 changed files with 3 additions and 1 deletions

View file

@ -76,6 +76,7 @@ const prop = withDefaults(
currentCustomerName?: string;
customerType: CustomerType;
countEmployee?: number;
gender: string;
}>(),
{
color: 'green',
@ -255,7 +256,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
>
<template #error>
<q-img
:src="`${customerType === 'CORP' ? '/images/customer-CORP-avartar.png' : '/images/customer-PERS-avartar.png'}`"
:src="`${customerType === 'CORP' ? `/images/customer-CORP-avartar-${gender}.png` : `/images/customer-PERS-avartar-${gender}.png`}`"
/>
</template>
</q-img>