diff --git a/src/App.vue b/src/App.vue index ab0ef2b..0eb8622 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,18 +1,5 @@ diff --git a/src/router/index.js b/src/router/index.js index dca2973..fd49152 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -170,6 +170,21 @@ const router = createRouter({ path: '/admin/dashboard', component: AdminDashboardView, name: "admin-dashboard", + + children: [ + { + path: '/admin/users', + component: AdminUsersView, + name: "admin-users", + }, + { + path: '/admin/settings', + component: AdminSettingsView, + name: "admin-settings", + }, + // Other child routes for the dashboard + ] + }, // { // path: "/unauthorized", @@ -181,16 +196,7 @@ const router = createRouter({ name: "user-login", component: UserLoginView, }, - { - path: '/admin/users', - component: AdminUsersView, - name: "admin-users", - }, - { - path: '/admin/settings', - component: AdminSettingsView, - name: "admin-settings", - }, + ], }); diff --git a/src/views/Admin/SideNavAdmin.vue b/src/views/Admin/SideNavAdmin.vue index e647665..83cc272 100644 --- a/src/views/Admin/SideNavAdmin.vue +++ b/src/views/Admin/SideNavAdmin.vue @@ -1,11 +1,18 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/Admin/dashboard.vue b/src/views/Admin/dashboard.vue index 3403ac4..2393b72 100644 --- a/src/views/Admin/dashboard.vue +++ b/src/views/Admin/dashboard.vue @@ -1,16 +1,23 @@ - - \ No newline at end of file + + + + + \ No newline at end of file