Skip to content

Commit

Permalink
Add sub page navigation skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Oct 12, 2024
1 parent 1166b1b commit 471f1f8
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 424 deletions.
14 changes: 12 additions & 2 deletions app/assets/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,23 @@ const router = createRouter({
...AdminRoutes,
{
path: '/test',
name: 'test',
meta: {
auth: {
redirect: { name: 'account.login' }
}
},
component: () => import('../views/TestView.vue')
children: [
{
path: '',
name: 'test',
component: () => import('../views/TestView.vue'),
},
{
path: 't/:slug',
name: 'test.slug',
component: () => import('../views/TestViewDetail.vue')
}
]
}
]
}
Expand Down
4 changes: 4 additions & 0 deletions app/assets/views/TestViewDetail.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<script setup lang="ts">
</script>

<template></template>
Loading

0 comments on commit 471f1f8

Please sign in to comment.