enhance: navigation optimization

This commit is contained in:
Julian Krauser 2025-05-16 13:34:24 +02:00
parent 04c01b6780
commit 12b1d08ea4
3 changed files with 13 additions and 4 deletions

View file

@ -15,7 +15,7 @@ const router = createRouter({
routes: [
{
path: "/",
redirect: { name: "admin" },
redirect: { name: "admin-default" },
},
{
path: "/login",
@ -76,12 +76,13 @@ const router = createRouter({
path: "/admin",
name: "admin",
component: () => import("@/views/admin/View.vue"),
beforeEnter: [isAuthenticated],
beforeEnter: [isAuthenticated, abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-default",
component: () => import("@/views/admin/ViewSelect.vue"),
beforeEnter: [abilityAndNavUpdate],
},
{
path: "club",