Hide menu on mobile after navigating
This commit is contained in:
parent
3343b1c240
commit
b9eeec0125
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,7 @@ export default {
|
||||||
doStuffAfterRoute() {
|
doStuffAfterRoute() {
|
||||||
// this.setTitle('') // Reset the title if the page component does not set one itself
|
// this.setTitle('') // Reset the title if the page component does not set one itself
|
||||||
this.$store.commit(IS_FULLPAGE, false)
|
this.$store.commit(IS_FULLPAGE, false)
|
||||||
|
this.hideMenuOnMobile()
|
||||||
this.resetCurrentList()
|
this.resetCurrentList()
|
||||||
},
|
},
|
||||||
resetCurrentList() {
|
resetCurrentList() {
|
||||||
|
@ -103,6 +104,11 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
hideMenuOnMobile() {
|
||||||
|
if (window.innerWidth < 769) {
|
||||||
|
this.$store.commit(MENU_ACTIVE, false)
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue