21 lines
359 B
JavaScript
21 lines
359 B
JavaScript
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/default.vue'),
|
|
children: [
|
|
{ path: '', component: () => import('pages/Index.vue') }
|
|
]
|
|
}
|
|
]
|
|
|
|
// Always leave this as last one
|
|
if (process.env.MODE !== 'ssr') {
|
|
routes.push({
|
|
path: '*',
|
|
component: () => import('pages/Error404.vue')
|
|
})
|
|
}
|
|
|
|
export default routes
|