|
@@ -23,8 +23,9 @@
|
|
|
|
|
|
|
|
<div v-else-if="newsItem !== null" class="news">
|
|
<div v-else-if="newsItem !== null" class="news">
|
|
|
<CommonMeta
|
|
<CommonMeta
|
|
|
- :title="newsItem.title"
|
|
|
|
|
- :description="newsItem.leadText"
|
|
|
|
|
|
|
+ :title="() => newsItem.title"
|
|
|
|
|
+ :description="() => newsItem.leadText"
|
|
|
|
|
+ :image="() => newsItem.image"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<v-row class="center-90 mb-12">
|
|
<v-row class="center-90 mb-12">
|
|
@@ -96,6 +97,7 @@
|
|
|
import { useDisplay } from 'vuetify'
|
|
import { useDisplay } from 'vuetify'
|
|
|
import { parseISO, format } from 'date-fns'
|
|
import { parseISO, format } from 'date-fns'
|
|
|
import { fr } from 'date-fns/locale'
|
|
import { fr } from 'date-fns/locale'
|
|
|
|
|
+import type { ComputedRef } from 'vue'
|
|
|
import { useEntityFetch } from '~/composables/data/useEntityFetch'
|
|
import { useEntityFetch } from '~/composables/data/useEntityFetch'
|
|
|
import News from '~/models/Maestro/News'
|
|
import News from '~/models/Maestro/News'
|
|
|
|
|
|
|
@@ -119,7 +121,7 @@ const getImageUrl = (attachment: string): string | null => {
|
|
|
return `${config.public.apiBaseUrl}/uploads/news/${attachment}`
|
|
return `${config.public.apiBaseUrl}/uploads/news/${attachment}`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const formattedPublicationDate = computed(() => {
|
|
|
|
|
|
|
+const formattedPublicationDate: ComputedRef<string> = computed(() => {
|
|
|
if (pending.value || !newsItem.value) {
|
|
if (pending.value || !newsItem.value) {
|
|
|
return ''
|
|
return ''
|
|
|
}
|
|
}
|