#29 fix: fetch user data on route change after login
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user