refactor: person card fallback img

This commit is contained in:
puriphatt 2024-09-06 09:31:30 +07:00
parent c324cd6117
commit b430f40ad6
2 changed files with 8 additions and 14 deletions

View file

@ -1369,11 +1369,8 @@ const emptyCreateDialog = ref(false);
$i18n.locale === 'eng'
? `${props.row.firstNameEN} ${props.row.lastNameEN} `.trim()
: `${props.row.firstName} ${props.row.lastName} `.trim(),
img:
props.row.imageUrl ||
'/images/customer-' +
props.row.customerType +
'-avartar.png',
img: `${baseUrl}/customer/${props.row.id}/image`,
fallbackImg: `/images/customer-${props.row.customerType}-avartar-${props.row.gender}.png`,
male: undefined,
female: undefined,
detail: [
@ -1426,7 +1423,7 @@ const emptyCreateDialog = ref(false);
@toggle-status="
triggerChangeStatus(props.row.id, props.row.status)
"
/>
></PersonCard>
</div>
</template>
</q-table>