fix: แก้ค่าของ type

This commit is contained in:
Net 2024-06-11 11:23:23 +07:00
parent 601aa69d7c
commit 066cf121c6
5 changed files with 28 additions and 16 deletions

View file

@ -16,7 +16,7 @@ withDefaults(
list: {
imageUrl?: string;
id: string;
type: 'customerLegalEntity' | 'customerNaturalPerson';
type: 'CORP' | 'PERS';
name: string;
code: string;
detail?: { label: string; value: string }[];
@ -152,7 +152,15 @@ defineEmits<{
</q-card-section>
</div>
<div class="box-title">
<div class="rounded title">{{ $t(list.type) }}</div>
<div class="rounded title">
{{
$t(
list.type === 'CORP'
? 'customerLegalEntity'
: 'customerNaturalPerson',
)
}}
</div>
</div>
<q-card-section class="no-padding">
<div class="column items-center justify-center q-mb-md">