Call store user/loggedIn to get value
This commit is contained in:
@@ -114,7 +114,7 @@ router.beforeEach(
|
||||
// If pages has meta 'requiresAuth' and user not logged in
|
||||
// send user to signin page.
|
||||
if (to.matched.some(record => record.meta.requiresAuth)) {
|
||||
if (!loggedIn) {
|
||||
if (!loggedIn()) {
|
||||
next({ path: "/signin" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user