dykj-college-back-office-ma.../src/router/index.js

49 lines
1.1 KiB
JavaScript
Raw Normal View History

import { createRouter, createWebHistory } from "vue-router";
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
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: [
{
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,
},
...FinanceBillManage,
2024-04-06 14:17:20 +08:00
...ReceivablesManagement
]
});
2024-04-06 09:32:25 +08:00
export default router;