forgot case when none is set
This commit is contained in:
parent
59b102e5a7
commit
7c9e215f0b
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user