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