This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-31 10:04:06 +07:00
commit 68ec5aa38b
36 changed files with 13765 additions and 0 deletions

26
src/router/index.ts Normal file
View file

@ -0,0 +1,26 @@
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import HomeView from "../views/HomeView.vue";
const routes: Array<RouteRecordRaw> = [
{
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(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
},
];
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
});
export default router;