|
@@ -6,6 +6,9 @@
|
|
<div class="cols">
|
|
<div class="cols">
|
|
<div class="col col-left">
|
|
<div class="col col-left">
|
|
<section class="body" v-html="thematique.body"></section>
|
|
<section class="body" v-html="thematique.body"></section>
|
|
|
|
+ <section class="visuel">
|
|
|
|
+ <img :src="image_accroche.style_cardmedium.url" alt="">
|
|
|
|
+ </section>
|
|
</div> <!-- //col-left -->
|
|
</div> <!-- //col-left -->
|
|
<div class="col col-right">
|
|
<div class="col col-right">
|
|
<aside class="linked-materials">
|
|
<aside class="linked-materials">
|
|
@@ -125,13 +128,19 @@ export default {
|
|
},
|
|
},
|
|
parseDataGQL(thematique){
|
|
parseDataGQL(thematique){
|
|
console.log('parseDataGQL thematique', thematique)
|
|
console.log('parseDataGQL thematique', thematique)
|
|
- this.thematique = thematique
|
|
|
|
|
|
+ if (thematique) {
|
|
|
|
+ this.thematique = thematique
|
|
|
|
|
|
- this.image_accroche = thematique.images[0]
|
|
|
|
|
|
+ if (thematique.images) {
|
|
|
|
+ this.image_accroche = thematique.images[0]
|
|
|
|
+ }
|
|
|
|
|
|
- // update main page title
|
|
|
|
- this.$store.commit('Common/setPagetitle', thematique.title)
|
|
|
|
|
|
+ // update main page title
|
|
|
|
+ this.$store.commit('Common/setPagetitle', thematique.title)
|
|
|
|
|
|
|
|
+ }else{
|
|
|
|
+ console.warn('Thematique not loaded');
|
|
|
|
+ }
|
|
this.loading = false;
|
|
this.loading = false;
|
|
},
|
|
},
|
|
},
|
|
},
|