2024-04-06 09:55:10 +08:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
2024-04-06 11:10:22 +08:00
|
|
|
import FinanceBillManage from "./modules/financeBillManage";
|
2024-04-06 14:17:20 +08:00
|
|
|
import ReceivablesManagement from "./modules/receivables-management";
|
2024-04-06 11:28:15 +08:00
|
|
|
import Login from "@/pages/login/index.vue";
|
2024-04-07 15:17:13 +08:00
|
|
|
import Password from "@/pages/password/index.vue";
|
2024-04-06 15:15:18 +08:00
|
|
|
import Student from "@/pages/students/student.vue";
|
2024-04-06 09:32:25 +08:00
|
|
|
|
2024-04-06 11:12:39 +08:00
|
|
|
import Layout from "@/layout/index.vue";
|
2024-04-06 09:32:25 +08:00
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
|
routes: [
|
2024-04-08 11:57:10 +08:00
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
redirect: "/home",
|
|
|
|
meta: { title: "首页", name: "home" },
|
|
|
|
component: Layout,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: "/home",
|
|
|
|
name: "home",
|
|
|
|
component: () => import("@/pages/home/index.vue"),
|
|
|
|
meta: {
|
|
|
|
title: "首页",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2024-04-06 11:28:15 +08:00
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
name: "login",
|
|
|
|
component: Login,
|
|
|
|
},
|
2024-04-07 15:17:13 +08:00
|
|
|
{
|
|
|
|
path: "/password-reset",
|
|
|
|
name: "password",
|
|
|
|
component: Password,
|
|
|
|
},
|
2024-04-06 15:15:18 +08:00
|
|
|
{
|
|
|
|
path: "/student",
|
|
|
|
name: "student",
|
|
|
|
component: Student,
|
|
|
|
},
|
2024-04-06 11:10:22 +08:00
|
|
|
...FinanceBillManage,
|
2024-04-06 14:17:20 +08:00
|
|
|
...ReceivablesManagement
|
2024-04-08 11:57:10 +08:00
|
|
|
]
|
2024-04-06 09:55:10 +08:00
|
|
|
});
|
2024-04-06 09:32:25 +08:00
|
|
|
|
2024-04-06 09:55:10 +08:00
|
|
|
export default router;
|