vue 2 to 3 #1

Merged
gator merged 25 commits from dev into master 2022-12-02 11:23:43 +01:00
Showing only changes of commit 7c9e215f0b - Show all commits

View File

@ -35,13 +35,11 @@ export default {
updateActiveMenu(event) {
const elem = event.target
const value = elem.id
this.$store.commit('setActiveMenu', value)
if (value == this.activeMenu)
this.$store.commit('setActiveMenu', "")
else
this.$store.commit('setActiveMenu', value)
},
isActive(event) {
const elem = event.target
if (elem.id === this.activeMenu) return true
return false
}
}
}
</script>