diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 8c422f8..faf893a 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -77,11 +77,14 @@ mounted() { this.checkAuth(); }, - watch: { - group () { - this.drawer = false - }, - }, + watch: { + group () { + this.drawer = false + }, + $route() { + this.checkAuth(); + }, + }, methods: { checkAuth() { this.isAuthenticated = AuthService.isAuthenticated();