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
+1 -1
View File
@@ -82,7 +82,7 @@
<div class="panel">
<div class="panel-head">
<h3>最近任务</h3>
<router-link to="/tasks" class="meta">查看全部 →</router-link>
<router-link to="/task/log" class="meta">查看全部 →</router-link>
</div>
<div class="panel-body">
<table>
+1 -1
View File
@@ -249,7 +249,7 @@ const openWayne = async () => {
const handleMysqlSubmit = () => {
showMysqlModal.value = false
ElMessage.success('MySQL 标准化交付已提交,完成后自动注册 CloudDM')
router.push({ name: 'Tasks' })
router.push({ name: 'TaskLog' })
}
</script>