|
|
@@ -75,7 +75,8 @@
|
|
|
|
|
|
<v-chip
|
|
|
class="chip-register"
|
|
|
- @click="downloadPdf(course.downloadLink)"
|
|
|
+ :href="course.url"
|
|
|
+ target="_blank"
|
|
|
>
|
|
|
Télécharger le programme de formation
|
|
|
</v-chip>
|
|
|
@@ -99,9 +100,7 @@
|
|
|
import AnchoredSection from '~/components/Layout/AnchoredSection.vue'
|
|
|
import type { Training } from '~/types/interface'
|
|
|
|
|
|
-const downloadPdf = (pdfUrl: string) => {
|
|
|
- window.open(pdfUrl, '_blank')
|
|
|
-}
|
|
|
+const runtimeConfig = useRuntimeConfig()
|
|
|
|
|
|
const courses: Array<Training> = [
|
|
|
{
|
|
|
@@ -139,7 +138,9 @@ const courses: Array<Training> = [
|
|
|
},
|
|
|
],
|
|
|
price: '2 008,80€ HT',
|
|
|
- downloadLink: 'files/PF-School-2024-06_2-jours.pdf',
|
|
|
+ url:
|
|
|
+ runtimeConfig.public.fileStorageBaseUrl +
|
|
|
+ '/Programme_de_formation/PF-School_2-jours.pdf',
|
|
|
},
|
|
|
{
|
|
|
number: '02',
|
|
|
@@ -163,7 +164,9 @@ const courses: Array<Training> = [
|
|
|
},
|
|
|
],
|
|
|
price: '1004,40€ HT',
|
|
|
- downloadLink: 'files/PF-School-2024-06_1-jour.pdf',
|
|
|
+ url:
|
|
|
+ runtimeConfig.public.fileStorageBaseUrl +
|
|
|
+ '/Programme_de_formation/PF-School_1-jour.pdf',
|
|
|
},
|
|
|
{
|
|
|
number: '03',
|
|
|
@@ -188,7 +191,9 @@ const courses: Array<Training> = [
|
|
|
},
|
|
|
],
|
|
|
price: '1004,40€ HT',
|
|
|
- downloadLink: 'files/PF-Typo3-2024-06_1-jour.pdf',
|
|
|
+ url:
|
|
|
+ runtimeConfig.public.fileStorageBaseUrl +
|
|
|
+ '/Programme_de_formation/PF-Typo3_1-jour.pdf',
|
|
|
},
|
|
|
]
|
|
|
</script>
|