front end

This commit is contained in:
2026-03-18 12:00:19 +01:00
parent b0352c963c
commit bc6ad43ea5
31 changed files with 832 additions and 166 deletions

View File

@@ -89,7 +89,7 @@
</div>
</div>
</section>
</PageSection>
</PageSection>
</template>
</div>
</template>
@@ -101,26 +101,28 @@
const route = useRoute()
//////////////////////////////////////////////////////////////
// RÉCUPÉRATION DU CONTENU
// RÉCUPÉRATION DU CONTENU STRAPI
//////////////////////////////////////////////////////////////
const artisteSlug = computed(() => String(route.params.id || ''))
const populate = {
image_illustration_artiste_ondif: true,
postes_artiste_ondif: true,
}
const filters = computed(() => ({
slug_artiste_ondif: {
$eq: artisteSlug.value,
},
}))
const { artistes, pending, error } = useArtistes({
locale: 'fr-FR',
populate,
filters,
limit: 1,
})
const { items: artistes, pending, error } = useStrapi(
"/api/__strapi__/artistes",
{
locale: "fr-FR",
populate,
filters,
limit: 1,
}
)
const artiste = computed(() => artistes.value?.[0] || {})