Call store user/loggedIn to get value

This commit is contained in:
2022-08-09 01:17:45 +02:00
parent 2b8d9868b9
commit d061ca06e2

View File

@@ -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" });
}
}