Files
workspace/code/fms/fms-vue/src/router/routes.js
T
2026-07-22 17:31:48 +08:00

64 lines
1.5 KiB
JavaScript

const routes = [
{
path: "/",
component: () => import("@/layouts/DefaultLayout.vue"),
meta: { requiresAuth: true },
children: [
{
path: "",
redirect: "/dashboard",
},
{
path: "dashboard",
name: "dashboard",
component: () => import("@/views/dashboard/index.vue"),
meta: { title: "工作台", menuKey: "/dashboard" },
},
{
path: "dashboard/table-demo",
name: "dashboard-table-demo",
component: () => import("@/views/dashboard/TableDemo.vue"),
meta: {
title: "表格 Demo",
section: "工作台",
menuKey: "/dashboard/table-demo",
},
},
{
path: "system/modules",
name: "system-modules",
component: () => import("@/views/module-management/index.vue"),
meta: {
title: "模块管理",
section: "系统管理",
menuKey: "/system/modules",
moduleCode: "m_module",
},
},
{
path: "system/i18n",
name: "system-i18n",
component: () => import("@/views/i18n-management/index.vue"),
meta: {
title: "多语言管理",
section: "系统管理",
menuKey: "/system/i18n",
moduleCode: "m_i18n",
},
},
],
},
{
path: "/login",
name: "login",
component: () => import("@/views/login/index.vue"),
meta: { title: "登录" },
},
{
path: "/:pathMatch(.*)*",
redirect: "/dashboard",
},
];
export default routes;