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

45 lines
1.1 KiB
JavaScript

import { createRouter, createWebHistory } from "vue-router";
import FinanceBillManage from "./modules/financeBillManage";
import ReceivablesManagement from "./modules/receivablesManagement";
import StudentManage from "./modules/studentManage";
import Login from "@/pages/login/index.vue";
import Password from "@/pages/password/index.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,
},
...FinanceBillManage,
...ReceivablesManagement,
...StudentManage,
],
});
export default router;