Skip to content

Commit

Permalink
feat(ui): define route for adminViews
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Dec 4, 2024
1 parent 4c6271a commit b306849
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions ui/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,62 @@ const router = createRouter({
}
]
},
{
path: "/admin",
name: "adminField",
component: () => import("@/views/structure/adminField/AdminField.vue"),
redirect: { name: "adminOverview" },
children: [
{
path: "overview",
name: "adminOverview",
component: () => import("@/views/structure/adminField/common/OverviewView.vue")
},
{
path: "image",
name: "imageManagement",
component: () => import("@/views/structure/adminField/image/ImageManagementView.vue")
},
{
path: "album",
name: "albumManagement",
component: () => import("@/views/structure/adminField/album/AlbumManagementView.vue")
},
{
path: "user",
name: "userManagement",
component: () => import("@/views/structure/adminField/user/UserManagementView.vue")
},
{
path: "group",
name: "groupManagement",
component: () => import("@/views/structure/adminField/group/GroupManagementView.vue")
},
{
path: "strategy",
name: "strategyManagement",
component: () => import("@/views/structure/adminField/strategy/StrategyManagementView.vue")
},
{
path: "setting",
name: "settingHome",
component: () => import("@/views/structure/adminField/setting/SettingView.vue"),
redirect: { name: "systemSetting" },
children: [
{
path: "system",
name: "systemSetting",
component: () => import("@/views/structure/adminField/setting/SystemSettingView.vue")
},
{
path: "site",
name: "siteSetting",
component: () => import("@/views/structure/adminField/setting/SiteSettingView.vue")
}
]
}
]
},
{
path: "/:pathMatch(.*)",
name: "notFound",
Expand Down

0 comments on commit b306849

Please sign in to comment.