feat:UI及部分后端
This commit is contained in:
24
front/src/router/index.ts
Normal file
24
front/src/router/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
|
||||
import Main from "../component/Main.vue";
|
||||
import Setting from "../component/Setting.vue";
|
||||
import About from "../component/About.vue";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: "/",
|
||||
component: Main,
|
||||
},
|
||||
{
|
||||
path: "/setting",
|
||||
component: Setting
|
||||
},{
|
||||
path: "/about",
|
||||
component: About
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user