fix: stat card on customer main

This commit is contained in:
puriphatt 2024-04-24 02:38:54 +00:00
parent 710426280c
commit fc074dc7c3

View file

@ -95,17 +95,13 @@ const customerStats = [
{
id: 1,
count: 2,
name: 'นายจ้าง 1',
nameEN: 'Employer 1',
isEmployer: true,
name: 'customerLegalEntity',
},
{
id: 2,
count: 3,
name: 'นายจ้าง 2',
nameEN: 'Employer 2',
isEmployer: true,
name: 'customerNaturalPerson',
},
];
@ -172,8 +168,8 @@ function onClose() {
:branch="
customerStats.map((v) => ({
count: v.count,
label: $i18n.locale === 'en-US' ? v.nameEN : v.name,
color: v.isEmployer ? 'pink' : 'purple',
label: v.name,
color: v.name === 'customerLegalEntity' ? 'purple' : 'green',
}))
"
:dark="$q.dark.isActive"