on multiple superpositions can switch by clicking on superposed mapitem

This commit is contained in:
2023-09-20 15:25:36 +02:00
parent 139db3516a
commit c67afa76e3
7 changed files with 102 additions and 57 deletions

View File

@@ -20,6 +20,17 @@ export default {
computed: {
...mapState(ConcernementsStore,['concernementsByID', 'opened_concernement', 'ct_concernement']),
},
watch: {
cid: {
handler (n,o) {
console.log(`TerrainDeVie watch cid o:${o}, n:${n}`);
if (n) {
this.concernement = this.concernementsByID[n];
}
},
deep: true
}
},
methods: {
...mapActions(ConcernementsStore,['setMapMode'])
},