25 lines
484 B
JavaScript
25 lines
484 B
JavaScript
import { defineStore } from 'pinia'
|
|
|
|
export const useMenuStore = defineStore('menu', {
|
|
state: () => ({
|
|
whoAmI: true,
|
|
technologies: false,
|
|
projects: false,
|
|
networks: false,
|
|
contact: false,
|
|
}),
|
|
|
|
actions:
|
|
{
|
|
selected(event){
|
|
this.whoAmI = false
|
|
this.technologies = false
|
|
this.projects = false
|
|
this.networks = false
|
|
this.contact = false
|
|
|
|
this[event.currentTarget.dataset.name] = true
|
|
|
|
},
|
|
}
|
|
}) |