23 lines
469 B
TypeScript
23 lines
469 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import Home from './components/Home.vue'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/scratch',
|
|
name: 'Scratch',
|
|
component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'),
|
|
},
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes: routes,
|
|
})
|
|
|
|
export default router
|