20260715221223
This commit is contained in:
1 parent
7049584d1e
commit
704dda07b5
21 files changed
+2649
-427
No files matched your search
@@ -0,0 +1,82 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
component: () => import("../layouts/DefaultLayout.vue"),
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
redirect: "/dashboard",
|
||||
},
|
||||
{
|
||||
path: "dashboard",
|
||||
name: "dashboard",
|
||||
component: () => import("../views/DashboardView.vue"),
|
||||
meta: { title: "工作台", menuKey: "/dashboard" },
|
||||
},
|
||||
{
|
||||
path: "business/orders",
|
||||
name: "business-orders",
|
||||
component: () => import("../views/DataListView.vue"),
|
||||
meta: {
|
||||
title: "业务单据",
|
||||
section: "业务管理",
|
||||
menuKey: "/business/orders",
|
||||
source: "v_bs_business",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "fees/receivable",
|
||||
name: "fees-receivable",
|
||||
component: () => import("../views/DataListView.vue"),
|
||||
meta: {
|
||||
title: "应收费用",
|
||||
section: "费用管理",
|
||||
menuKey: "/fees/receivable",
|
||||
source: "v_fee_receivable",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "reports/operations",
|
||||
name: "reports-operations",
|
||||
component: () => import("../views/DataListView.vue"),
|
||||
meta: {
|
||||
title: "运营报表",
|
||||
section: "报表中心",
|
||||
menuKey: "/reports/operations",
|
||||
source: "v_report_operations",
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "system/users",
|
||||
name: "system-users",
|
||||
component: () => import("../views/DataListView.vue"),
|
||||
meta: {
|
||||
title: "用户管理",
|
||||
section: "系统设置",
|
||||
menuKey: "/system/users",
|
||||
source: "sys_user",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
redirect: "/dashboard",
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
scrollBehavior: () => ({ top: 0 }),
|
||||
});
|
||||
|
||||
router.beforeEach((to) => {
|
||||
document.title = to.meta.title ? `${to.meta.title} - FMS 管理系统` : "FMS 管理系统";
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user