started to open concernement on map click

This commit is contained in:
2023-04-05 22:02:19 +02:00
parent 4a7f9282b5
commit d88914c679
11 changed files with 86 additions and 15 deletions

View File

@@ -0,0 +1,40 @@
<script>
import { mapActions, mapState } from 'pinia'
import { ConcernementsStore } from '@stores/concernements'
export default {
props: ['id'],
// data(){
// return {
// block: null
// }
// },
computed: {
...mapState(ConcernementsStore,['opened'])
},
created () {
// console.log("Concernement view created, id", this.opened.id);
// this.loadStatics()
},
methods: {
// ...mapActions(StaticsStore,['loadStatics'])
},
components: {
}
}
</script>
<template>
<section class="concernement">
<h2>{{ opened.title }}</h2>
<div v-html="opened.description"/>
<div v-html="opened.caillou"/>
</section>
</template>
<style lang="scss" scoped>
</style>