aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/site/src/router/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'site/src/router/index.ts')
-rw-r--r--site/src/router/index.ts17
1 files changed, 6 insertions, 11 deletions
diff --git a/site/src/router/index.ts b/site/src/router/index.ts
index 65353da..38c65fd 100644
--- a/site/src/router/index.ts
+++ b/site/src/router/index.ts
@@ -4,18 +4,13 @@ import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
- component: () => import('@/layouts/default/Default.vue'),
- children: [
- {
- path: '',
- name: 'Home',
- // route level code-splitting
- // this generates a separate chunk (about.[hash].js) for this route
- // which is lazy-loaded when the route is visited.
- component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'),
- },
- ],
+ component: () => import('@/views/index/index.vue'),
},
+ {
+ path: '/:path(.*)',
+ name: '404',
+ component: () => import('@/views/404.vue'),
+ }
]
const router = createRouter({