refactor(router): 统一前端路由命名与层级

## 背景
前端路由存在层级不一致、英文缩写混用、name 与 sidebar 文本不匹配等问题。

## 变更内容
- 统一使用全称命名(Mgmt → Management, Ops → Operation)
- 统一带前缀路径(/cluster → /infrastructure/cluster)
- 合并可观测性模块(/monitor、/alert → /observable/*)
- 修正 router name 与侧边栏中文标题对应关系

## 路由对照
- /tasks → /task/log (TaskLog)
- /resource/mgmt → /resource/management (ResourceManagement)
- /service/mgmt → /service/management (ServiceManagement)
- /audit/ops → /audit/operation (OperationAudit)
- /cluster → /infrastructure/cluster (InfrastructureCluster)
- /tenants → /business/quota (BusinessQuota)
- /monitor → /observable/monitoring (MonitoringDashboard)
- /alert → /observable/alert (AlertInformation)
- /subsystem/authz → /subsystem/authorization (SubsystemAuthorization)
This commit is contained in:
2026-07-17 14:50:41 +08:00
parent 1a125e154c
commit 3842a81cb2
4 changed files with 30 additions and 30 deletions
+20 -20
View File
@@ -41,8 +41,8 @@ const router = createRouter({
meta: { title: '子系统详情' },
},
{
path: 'subsystem/authz',
name: 'SubsystemAuthz',
path: 'subsystem/authorization',
name: 'SubsystemAuthorization',
component: () => import('@/views/subsystem/Authorization.vue'),
meta: { title: '子系统赋权' },
},
@@ -53,8 +53,8 @@ const router = createRouter({
meta: { title: '登录审计' },
},
{
path: 'audit/ops',
name: 'OpsAudit',
path: 'audit/operation',
name: 'OperationAudit',
component: () => import('@/views/audit/OpsAudit.vue'),
meta: { title: '运维操作审计' },
},
@@ -65,20 +65,20 @@ const router = createRouter({
meta: { title: '资源状态看板' },
},
{
path: 'resource/mgmt',
name: 'ResourceMgmt',
path: 'resource/management',
name: 'ResourceManagement',
component: () => import('@/views/resource/Management.vue'),
meta: { title: '资源管理' },
},
{
path: 'cluster',
name: 'Cluster',
path: 'infrastructure/cluster',
name: 'InfrastructureCluster',
component: () => import('@/views/cluster/ClusterList.vue'),
meta: { title: '集群与容器' },
},
{
path: 'tenants',
name: 'Tenants',
path: 'business/quota',
name: 'BusinessQuota',
component: () => import('@/views/resource/Tenants.vue'),
meta: { title: '业务配额' },
},
@@ -86,19 +86,19 @@ const router = createRouter({
path: 'service/catalog',
name: 'ServiceCatalog',
component: () => import('@/views/service/Catalog.vue'),
meta: { title: '基础服务目录' },
meta: { title: '基础服务' },
},
{
path: 'service/mgmt',
name: 'ServiceMgmt',
path: 'service/management',
name: 'ServiceManagement',
component: () => import('@/views/service/Management.vue'),
meta: { title: '服务管理' },
},
{
path: 'tasks',
name: 'Tasks',
path: 'task/log',
name: 'TaskLog',
component: () => import('@/views/task/TaskCenter.vue'),
meta: { title: '任务中心' },
meta: { title: '任务日志' },
},
{
path: 'config',
@@ -107,14 +107,14 @@ const router = createRouter({
meta: { title: '配置中心管理' },
},
{
path: 'monitor',
name: 'Monitor',
path: 'observable/monitoring',
name: 'MonitoringDashboard',
component: () => import('@/views/monitor/Monitor.vue'),
meta: { title: '监控看板' },
},
{
path: 'alert',
name: 'Alert',
path: 'observable/alert',
name: 'AlertInformation',
component: () => import('@/views/monitor/Alert.vue'),
meta: { title: '告警信息' },
},