style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-03-17 10:23:28 +00:00
parent 7b356c5ddd
commit d555144681

View file

@ -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) {