Merge branch 'dev' into refactor/mv-flow-to-content

This commit is contained in:
Khafid Prayoga
2025-09-08 13:41:33 +07:00
9 changed files with 171 additions and 125 deletions
+7 -7
View File
@@ -26,21 +26,21 @@ const recAction = ref<string>('')
const recItem = ref<any>(null)
const headerPrep: HeaderPrep = {
title: 'BMHP',
icon: 'i-lucide-paint-bucket',
title: 'Perlengkapan (BMHP)',
icon: 'i-lucide-panel-bottom',
addNav: {
label: 'Tambah',
onClick: () => navigateTo('/tools-equipment-src/material/add'),
onClick: () => navigateTo('/tools-equipment-src/equipment/add'),
},
}
async function getMaterialList() {
isLoading.dataListLoading = true
const resp = await xfetch('/api/v1/material')
if (resp.success) {
data.value = (resp.body as Record<string, any>).data
}
// const resp = await xfetch('/api/v1/material')
// if (resp.success) {
// data.value = (resp.body as Record<string, any>).data
// }
isLoading.dataListLoading = false
}