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-08 13:01:00 +08:00
|
|
|
import ReceivablesManagement from "./modules/receivablesManagement";
|
2024-04-08 12:56:45 +08:00
|
|
|
import StudentManage from "./modules/studentManage";
|
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 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 11:10:22 +08:00
|
|
|
...FinanceBillManage,
|
2024-04-08 12:56:45 +08:00
|
|
|
...ReceivablesManagement,
|
|
|
|
...StudentManage,
|
|
|
|
],
|
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;
|