first

This commit is contained in:
2024-10-02 13:48:21 +08:00
commit d3ceff0fee
31 changed files with 1512 additions and 0 deletions

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

@ -0,0 +1,23 @@
import {createRouter, createWebHistory} from "vue-router"
import Home from "../views/Home.vue"
import Test from "../views/Test.vue"
const routes = [
{
path: '/',
name: '主页',
component: Home
},
{
path: '/test',
name: '测试',
component: Test
}
]
const router = createRouter({
history: createWebHistory("/"),
routes
})
export default router