添加路由

This commit is contained in:
2025-02-28 09:22:38 +08:00
parent 8993455dfb
commit 81706fc48d
7 changed files with 321 additions and 22 deletions

10
src/router.ts Normal file
View File

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