This commit is contained in:
2022-04-27 14:02:52 +08:00
parent eac55b28c8
commit 81decc9a63
10 changed files with 1722 additions and 292 deletions

17
src/router/index.ts Normal file
View File

@@ -0,0 +1,17 @@
import { createRouter, createWebHistory } from "vue-router";
import Home from "../views/Home.vue";
const routes = [
{
path: "/",
name: "Home",
component: Home,
},
];
// createRouter
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;