This commit is contained in:
@ -4,14 +4,21 @@ interface Route {
|
||||
path: string
|
||||
name: string
|
||||
component: () => Promise<Component>
|
||||
props?: boolean
|
||||
}
|
||||
|
||||
const routes: Route[] = [
|
||||
{
|
||||
path: '/',
|
||||
name: '/',
|
||||
name: 'home',
|
||||
component: () => import('@/pages/mainPage/indexPage.vue'),
|
||||
},
|
||||
{
|
||||
path: '/books/:slug',
|
||||
name: 'book-detail',
|
||||
component: () => import('@/pages/books/_slug/indexBookPage.vue'),
|
||||
props: true,
|
||||
},
|
||||
]
|
||||
|
||||
export default routes
|
||||
|
Reference in New Issue
Block a user