WIP; Vue3 project tree

This commit is contained in:
2023-02-28 13:57:08 +01:00
parent a7b2dbf4bc
commit 3b428f52af
27 changed files with 2486 additions and 10 deletions

30
src/router/index.js Normal file
View File

@ -0,0 +1,30 @@
/**
* Routes for the Vue router.
*
* Part of the basebox sample TODO app.
* https://basebox.tech
*/
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView
},
{
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/AboutView.vue')
}
]
})
export default router