Skip to content

Commit e2d09fb

Browse files
committed
fix(frontend): layout
1 parent 66abc4a commit e2d09fb

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

frontend/src/layouts/Dashboard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { SidebarProvider } from '@/components/ui/sidebar'
99
<Header />
1010
<SidebarProvider class="mt-14">
1111
<AppSidebar />
12-
<div class="h-dvh w-dvw">
13-
<slot />
12+
<div class="h-full w-dvw">
13+
<RouterView />
1414
</div>
1515
</SidebarProvider>
1616
</div>

frontend/src/router/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ const router = createRouter({
1111
{
1212
path: '/dashboard',
1313
name: 'dashboard',
14-
component: () => import('@/views/DashboardView.vue'),
14+
component: () => import('@/layouts/Dashboard.vue'),
15+
children: [
16+
{
17+
path: '/dashboard',
18+
component: () => import('@/views/DashboardView.vue'),
19+
},
20+
],
1521
},
1622
],
1723
})

frontend/src/views/DashboardView.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@ useHead({
88
})
99
</script>
1010

11-
<template>
12-
<Dashboard>
13-
<RouterView />
14-
</Dashboard>
15-
</template>
11+
<template></template>

0 commit comments

Comments
 (0)