#28 fix: update auth state on route change
This commit is contained in:
@@ -77,11 +77,14 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.checkAuth();
|
this.checkAuth();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
group () {
|
group () {
|
||||||
this.drawer = false
|
this.drawer = false
|
||||||
},
|
},
|
||||||
},
|
$route() {
|
||||||
|
this.checkAuth();
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkAuth() {
|
checkAuth() {
|
||||||
this.isAuthenticated = AuthService.isAuthenticated();
|
this.isAuthenticated = AuthService.isAuthenticated();
|
||||||
|
|||||||
Reference in New Issue
Block a user