feat(specialist): add unit info to specialist detail view
- Extend getDetail function to accept optional params - Include unit data when fetching specialist details - Display unit code alongside name in detail view
This commit is contained in:
@@ -117,7 +117,9 @@ const headerPrep: HeaderPrep = {
|
||||
// #region Lifecycle Hooks
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const result = await getDetailSpecialist(props.specialistId)
|
||||
const result = await getDetailSpecialist(props.specialistId, {
|
||||
includes: 'unit',
|
||||
})
|
||||
if (result.success) {
|
||||
specialist.value = result.body.data || {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user