perf: 拷贝一份新的路由配置、注释产品路由校验

This commit is contained in:
rd
2025-08-14 14:46:51 +08:00
parent 1f3826e9dc
commit 9b9f66b5af
20 changed files with 989 additions and 13 deletions

View File

@ -0,0 +1,56 @@
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;