diff options
| author | 2023-11-04 13:48:59 +0800 | |
|---|---|---|
| committer | 2023-11-04 13:48:59 +0800 | |
| commit | c0803c57089da5fea820831325252e08d850fca8 (patch) | |
| tree | 225cf262625863b9b8d46c7880d7e09cc7b87c28 /src/router/index.ts | |
| parent | 7642c0bb0ff9f81212e5270f9d598b949f6b0a30 (diff) | |
| download | logshader-c0803c57089da5fea820831325252e08d850fca8.tar.gz logshader-c0803c57089da5fea820831325252e08d850fca8.zip | |
refactor: rebuild with `vuetify`
Diffstat (limited to 'src/router/index.ts')
| -rw-r--r-- | src/router/index.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 0000000..65353da --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,26 @@ +// Composables +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'), + }, + ], + }, +] + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes, +}) + +export default router |
