From 2aca4247c5d0c7061a300517178dd31316b65fab Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 15 Feb 2024 14:01:30 +0000 Subject: Initial commit --- src/router/index.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/router/index.ts (limited to 'src/router/index.ts') diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 0000000..9091d16 --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,23 @@ +import { createRouter, createWebHistory } from 'vue-router' +import EditorView from '../views/EditorView.vue' + +const router = createRouter({ + history: createWebHistory(import.meta.env.BASE_URL), + routes: [ + { + path: '/', + name: 'home', + component: EditorView + }, + { + path: '/about', + name: 'about', + // 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('../views/EditorView.vue') + } + ] +}) + +export default router -- cgit v1.2.3-70-g09d2