#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();
}
},
watch: {
group () {
this.drawer = false
},
$route() {
this.checkAuth();
},
},
watch: {
group () {
this.drawer = false
},
$route() {
this.checkAuth();
if (this.isAuthenticated && !this.user) {
this.fetchUser();
}
},
},
methods: {
checkAuth() {
this.isAuthenticated = AuthService.isAuthenticated();