From 3112c82bb2984082e1cb53ab825a432361ddb725 Mon Sep 17 00:00:00 2001 From: mono Date: Sat, 7 Mar 2026 16:48:24 -0500 Subject: [PATCH] #28 fix: update auth state on route change --- src/components/NavBar.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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();