wip(frontend) : api calls + skeleton fetch
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user