import { createRouter, createWebHistory } from "vue-router"; import FinanceBillManage from "./modules/financeBillManage"; import ReceivablesManagement from "./modules/receivables-management"; import Login from "@/pages/login/index.vue"; import Password from "@/pages/password/index.vue"; import Student from "@/pages/students/student.vue"; import Layout from "@/layout/index.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: "/", redirect: "/home", meta: { title: "首页", name: "home" }, component: Layout, children: [ { path: "/home", name: "home", component: () => import("@/pages/home/index.vue"), meta: { title: "首页", }, }, ], }, { path: "/login", name: "login", component: Login, }, { path: "/password-reset", name: "password", component: Password, }, { path: "/student", name: "student", component: Student, }, ...FinanceBillManage, ...ReceivablesManagement ] }); export default router;