fix: แก้ customerType ไม่เปลี่ยนค่าตอนกดดูนายจ้าง

This commit is contained in:
Net 2024-06-11 09:43:46 +07:00
parent 6add0cc327
commit 601aa69d7c

View file

@ -788,6 +788,7 @@ watch(locale, () => {
}"
@enter-card="
() => {
currentCustomerUrlImage = i.imageUrl;
currentCustomerId = i.id;
isMainPage = false;
}
@ -806,6 +807,10 @@ watch(locale, () => {
@view-card="
() => {
currentCustomerId = i.id;
customerType =
i.customerType === 'CORP'
? 'customerLegalEntity'
: 'customerNaturalPerson';
assignFormData(i);
openDialogInputForm('INFO', i.id);
}