concernement on map hover effect, better mappopup
This commit is contained in:
18
src/stores/common.js
Normal file
18
src/stores/common.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const CommonStore = defineStore({
|
||||
id: 'common',
|
||||
state: () => ({
|
||||
hover_elmt: null
|
||||
}),
|
||||
getters: {
|
||||
|
||||
},
|
||||
actions: {
|
||||
setHoverElmt(elmt) {
|
||||
console.log(`setHoverElmt ${elmt}`);
|
||||
// mode can be : terraindevie, proximite, superposition, puissancedagir, action, doleancer
|
||||
this.hover_elmt = elmt;
|
||||
}
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user