Client - init new frontend version with vue-cli

This commit is contained in:
Sam
2021-07-24 20:56:37 +02:00
parent 6d1de3c3bb
commit 23c4708217
34 changed files with 10497 additions and 0 deletions

View File

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