style: fix linting issues met Prettier
This commit is contained in:
parent
7b356c5ddd
commit
d555144681
1 changed files with 12 additions and 13 deletions
|
@ -21,7 +21,7 @@ const router = createRouter({
|
||||||
path: "/",
|
path: "/",
|
||||||
name: "home",
|
name: "home",
|
||||||
component: () => import("../views/HomePage.vue"),
|
component: () => import("../views/HomePage.vue"),
|
||||||
meta: {requiresAuth: false}
|
meta: { requiresAuth: false },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
|
@ -32,7 +32,7 @@ const router = createRouter({
|
||||||
{
|
{
|
||||||
path: "/callback",
|
path: "/callback",
|
||||||
component: CallbackPage,
|
component: CallbackPage,
|
||||||
meta: {requiresAuth: false}
|
meta: { requiresAuth: false },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -103,13 +103,12 @@ const router = createRouter({
|
||||||
path: "/:catchAll(.*)",
|
path: "/:catchAll(.*)",
|
||||||
name: "NotFound",
|
name: "NotFound",
|
||||||
component: NotFound,
|
component: NotFound,
|
||||||
meta: {requiresAuth: false}
|
meta: { requiresAuth: false },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
|
|
||||||
// Verify if user is logged in for paths that require access
|
// Verify if user is logged in for paths that require access
|
||||||
if (to.meta.requiresAuth) {
|
if (to.meta.requiresAuth) {
|
||||||
if (!authState.isLoggedIn) {
|
if (!authState.isLoggedIn) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue