enhance: navigation optimization
This commit is contained in:
parent
04c01b6780
commit
12b1d08ea4
3 changed files with 13 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue