增加学生管理路由

This commit is contained in:
ycy 2024-04-08 12:56:45 +08:00
parent ad899d0238
commit 63ffd54948
3 changed files with 36 additions and 8 deletions

View File

@ -37,6 +37,14 @@
<span>学生收款</span>
</t-menu-item>
</t-submenu>
<t-submenu value="3" title="学生管理">
<template #icon>
<t-icon name="application" />
</template>
<t-menu-item value="3-1" to="/Students">
<span>学生管理</span>
</t-menu-item>
</t-submenu>
</t-menu>
</div>
</template>

View File

@ -1,9 +1,9 @@
import { createRouter, createWebHistory } from "vue-router";
import FinanceBillManage from "./modules/financeBillManage";
import ReceivablesManagement from "./modules/receivables-management";
import StudentManage from "./modules/studentManage";
import Login from "@/pages/login/index.vue";
import Password from "@/pages/password/index.vue";
import Student from "@/pages/students/student.vue";
import Layout from "@/layout/index.vue";
const router = createRouter({
@ -35,14 +35,10 @@ const router = createRouter({
name: "password",
component: Password,
},
{
path: "/student",
name: "student",
component: Student,
},
...FinanceBillManage,
...ReceivablesManagement
]
...ReceivablesManagement,
...StudentManage,
],
});
export default router;

View File

@ -0,0 +1,24 @@
import Layout from "@/layout/index.vue";
// import studentURL from "@/pages/students/student";
import studentURL from "@/pages/students/student.vue";
const financeBillManage = [
{
path: "/Student",
name: "student",
component: Layout,
meta: { title: "学生", name: "resource" },
children: [
{
path: "/Students",
name: "students",
component: studentURL,
meta: {
title: "学生管理",
},
},
],
},
];
export default financeBillManage;