Close on route change

Torey Heinz committed Apr 20, 2020
commit c2564d3ad7d625185936b8f1ca5f66c3b967db6f
Showing 1 changed file with 5 additions and 0 deletions
src/layouts/Default.vue +5 -0
@@ @@ -43,6 +43,11 @@ export default {
return {
navbarIsActive: false
}
+ },
+ watch: {
+ $route() {
+ this.navbarIsActive = false
+ }
}
}
</script>