started to open concernement on map click
This commit is contained in:
40
src/views/Concernement.vue
Normal file
40
src/views/Concernement.vue
Normal 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>
|
Reference in New Issue
Block a user