diff options
| author | 2024-09-03 08:31:50 +0800 | |
|---|---|---|
| committer | 2024-09-03 08:31:50 +0800 | |
| commit | 66c5bb075b791b784511f00278e788df4e29fd92 (patch) | |
| tree | 0591290dde6c02e8a3a1890a74d40e07ad77852f /site/src/router/index.ts | |
| parent | 76b990510093d7cc22ba571b3625f4725ddfc7cb (diff) | |
| parent | 731d318b4d5f279ea58f0688353a011a41532f42 (diff) | |
| download | HydroRoll-66c5bb075b791b784511f00278e788df4e29fd92.tar.gz HydroRoll-66c5bb075b791b784511f00278e788df4e29fd92.zip | |
Merge pull request #98 from NtskwK/main
feat: add video background to index page
Diffstat (limited to 'site/src/router/index.ts')
| -rw-r--r-- | site/src/router/index.ts | 17 |
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({ |
