Add route-backed routing profile views

This commit is contained in:
elky
2026-06-18 02:06:34 +08:00
parent 6de0fe75a4
commit 16584067d7
3 changed files with 319 additions and 149 deletions
+13
View File
@@ -1254,6 +1254,19 @@ const breadcrumbs = computed((): BreadcrumbItem[] => {
]
}
// Special case: routing strategy detail pages
if (route.path.startsWith('/admin/routing/') && route.path !== '/admin/routing') {
return [
{ label: '管理' },
{ label: '调度策略', href: '/admin/routing' },
{
label: route.name === 'RoutingProfileCreate'
? '新建调度策略'
: '调度策略配置'
}
]
}
// Find section and page from navigation
for (const group of navigation.value) {
const activeItem = group.items.find(item => isNavActive(item.href))