57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
import { IconBookmark } from '@arco-design/web-vue/es/icon';
|
|
import type { AppRouteRecordRaw } from '../types';
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
{
|
|
path: '/management',
|
|
name: 'Management',
|
|
redirect: 'management/person',
|
|
meta: {
|
|
locale: '管理中心',
|
|
icon: IconBookmark,
|
|
requiresAuth: false,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
id: MENU_GROUP_IDS.MANAGEMENT_ID,
|
|
},
|
|
children: [
|
|
{
|
|
path: 'person',
|
|
name: 'ManagementPerson',
|
|
component: () => import('@/views/components/management/person'),
|
|
meta: {
|
|
locale: '个人信息',
|
|
requiresAuth: false,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
{
|
|
path: 'enterprise',
|
|
name: 'ManagementEnterprise',
|
|
component: () => import('@/views/components/management/enterprise'),
|
|
meta: {
|
|
locale: '企业信息',
|
|
requiresAuth: false,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
{
|
|
path: 'account',
|
|
name: 'ManagementAccount',
|
|
component: () => import('@/views/components/management/account'),
|
|
meta: {
|
|
locale: '账号管理',
|
|
requiresAuth: false,
|
|
requireLogin: true,
|
|
roles: ['*'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default COMPONENTS;
|