diff --git a/app/components/content/equipment/list.vue b/app/components/content/equipment/list.vue index 4c82ed92..7f7b34a0 100644 --- a/app/components/content/equipment/list.vue +++ b/app/components/content/equipment/list.vue @@ -26,8 +26,13 @@ const items = [ // Fungsi untuk fetch data equipment async function fetchEquipmentData(params: any) { - const endpoint = transform('/api/v1/equipment', params) - return await xfetch(endpoint) + // const endpoint = transform('/api/v1/equipment', params) + // return await xfetch(endpoint) + return await xfetch('/api/v1/material') +} + +async function fetchUom() { + return await xfetch('/api/v1/uom') } // Menggunakan composable untuk pagination @@ -169,10 +174,14 @@ const handleCancelConfirmation = () => { recAction.value = '' recItem.value = null } + +onMounted(async () => { + await fetchUom() +})