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

45 lines
1.1 KiB
JavaScript
Raw Normal View History

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