generated from gitea_admin/default
front end
This commit is contained in:
@@ -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] || {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user