feat: 管理中心路由调整、选择公司逻辑调整
This commit is contained in:
52
src/router/routes/modules/management.ts
Normal file
52
src/router/routes/modules/management.ts
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* @Author: RenXiaoDong
|
||||
* @Date: 2025-06-23 04:29:03
|
||||
*/
|
||||
import { IconBookmark } from '@arco-design/web-vue/es/icon';
|
||||
import type { AppRouteRecordRaw } from '../types';
|
||||
|
||||
const COMPONENTS: AppRouteRecordRaw = {
|
||||
path: 'management',
|
||||
name: 'management',
|
||||
meta: {
|
||||
locale: '管理中心',
|
||||
icon: IconBookmark,
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
requiresSidebar: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'person',
|
||||
name: '个人信息',
|
||||
component: () => import('@/views/components/management/person'),
|
||||
meta: {
|
||||
locale: '个人信息',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'enterprise',
|
||||
name: '企业信息',
|
||||
component: () => import('@/views/components/management/enterprise'),
|
||||
meta: {
|
||||
locale: '企业信息',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'account',
|
||||
name: '账号管理',
|
||||
component: () => import('@/views/components/management/account'),
|
||||
meta: {
|
||||
locale: '账号管理',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default COMPONENTS;
|
||||
Reference in New Issue
Block a user