wip(frontend) : api calls + skeleton fetch

This commit is contained in:
2026-01-12 13:03:41 +01:00
parent e99f053233
commit b5af7f13b6
6 changed files with 24 additions and 3 deletions

View File

@@ -3921,7 +3921,7 @@ const applyMachineLinks = (source) => {
const loadMachineData = async () => {
loading.value = true
try {
const machineResult = await get(`/machines/${machineId}`)
const machineResult = await get(`/machines/${machineId}/skeleton`)
if (!machineResult.success) {
console.error('Machine non trouvée:', machineId, machineResult.error)

View File

@@ -187,6 +187,14 @@ onMounted(async () => {
const typeId = route.params.id
console.log('=== TYPE DETAIL PAGE LOADING ===')
console.log('Loading type with ID:', typeId)
console.log('Full route params:', route.params)
if (!typeId) {
console.error('No type ID provided in route')
showError('Aucun identifiant de type fourni')
loading.value = false
return
}
const result = await getMachineTypeById(typeId)
console.log('API Result:', result)