diff --git a/src/components/03_customer-management/CustomerInfoComponent.vue b/src/components/03_customer-management/CustomerInfoComponent.vue index cb386d42..dffc31d5 100644 --- a/src/components/03_customer-management/CustomerInfoComponent.vue +++ b/src/components/03_customer-management/CustomerInfoComponent.vue @@ -12,6 +12,9 @@ const { fetchListById } = userCustomer; const inputSearch = ref(''); const branch = ref(); +const currentCustomerName = ref(''); +const currentCustomerUrlImage = ref(''); + const prop = withDefaults( defineProps<{ color?: 'purple' | 'green'; @@ -24,7 +27,11 @@ const prop = withDefaults( onMounted(async () => { const result = await fetchListById(prop.customerId); - if (result) branch.value = result.branch; + if (result) { + currentCustomerName.value = result.customerName; + currentCustomerUrlImage.value = result.imageUrl; + branch.value = result.branch; + } }); @@ -45,11 +52,16 @@ onMounted(async () => { style="border-radius: 0 0 40px 40px; position: relative" > - +
-
นายสุขใจ แสนดี
+
{{ currentCustomerName }}