2025-06-23 05:58:04 -04:00
|
|
|
/*
|
|
|
|
|
* @Author: RenXiaoDong
|
|
|
|
|
* @Date: 2025-06-23 04:29:03
|
|
|
|
|
*/
|
|
|
|
|
import { IconBookmark } from '@arco-design/web-vue/es/icon';
|
|
|
|
|
import type { AppRouteRecordRaw } from '../types';
|
2025-06-23 23:59:08 -04:00
|
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
2025-06-23 05:58:04 -04:00
|
|
|
|
2025-06-24 18:19:34 +08:00
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: '/management',
|
|
|
|
|
name: 'Management',
|
|
|
|
|
redirect: 'management/person',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '管理中心',
|
|
|
|
|
icon: IconBookmark,
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
requiresSidebar: true,
|
|
|
|
|
id: MENU_GROUP_IDS.MANAGEMENT_ID,
|
2025-06-23 05:58:04 -04:00
|
|
|
},
|
2025-06-24 18:19:34 +08:00
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'person',
|
|
|
|
|
name: 'ManagementPerson',
|
|
|
|
|
component: () => import('@/views/components/management/person'),
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '个人信息',
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-23 05:58:04 -04:00
|
|
|
},
|
2025-06-24 18:19:34 +08:00
|
|
|
{
|
|
|
|
|
path: 'enterprise',
|
|
|
|
|
name: 'ManagementEnterprise',
|
|
|
|
|
component: () => import('@/views/components/management/enterprise'),
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '企业信息',
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-23 05:58:04 -04:00
|
|
|
},
|
2025-06-24 18:19:34 +08:00
|
|
|
{
|
|
|
|
|
path: 'account',
|
|
|
|
|
name: 'ManagementAccount',
|
|
|
|
|
component: () => import('@/views/components/management/account'),
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '账号管理',
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
2025-06-23 05:58:04 -04:00
|
|
|
|
|
|
|
|
export default COMPONENTS;
|