Childish-Ghost 6de5364d0a V0.2.0.20250720
———————————————
1.登录页完善
———————————————
2025-07-20 22:14:29 +08:00

66 lines
1.7 KiB
TypeScript

import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router";
import Home from "@/views/Home.vue";
import NotFound from "@/error/NotFound.vue";
import Admin from "@/views/managerial/admin.vue"
import Account from "@/views/ordinary/account.vue"
import Books from "@/views/ordinary/books.vue"
import Journals from "@/views/ordinary/journals.vue"
import Newspapers from "@/views/ordinary/newspapers.vue";
import Main from "@/views/ordinary/main.vue";
const routes: Array<RouteRecordRaw> = [
{
path: "/",
name: "home",
component: Home,
children: [
{
path: "account",
name: "account",
component: Account,
},
{
path: "books",
name: "books",
component: Books,
},
{
path: "journals",
name: "journals",
component: Journals,
},
{
path: "newspapers",
name: "newspapers",
component: Newspapers,
},
{
path: "main",
name: "main",
component: Main,
},
]
},
{
path: "/account",
name: "account",
component: Account,
},
{
path: "/5Usw4tshU6SRG2HxSxeG2UKfZZ7HKvSjEZjvBV7WExUFYwUKTX",
name: "admin",
component: Admin,
},
{
path: "/:pathMatch(.*)*",
name: "NotFound",
component: NotFound
}
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router