#29 fix: fetch user data on route change after login

This commit is contained in:
mono
2026-03-14 22:36:57 -05:00
parent 373ebb0ae4
commit 974c84fdb2

View File

@@ -109,14 +109,17 @@
this.fetchUser(); this.fetchUser();
} }
}, },
watch: { watch: {
group () { group () {
this.drawer = false this.drawer = false
}, },
$route() { $route() {
this.checkAuth(); this.checkAuth();
}, if (this.isAuthenticated && !this.user) {
}, this.fetchUser();
}
},
},
methods: { methods: {
checkAuth() { checkAuth() {
this.isAuthenticated = AuthService.isAuthenticated(); this.isAuthenticated = AuthService.isAuthenticated();