mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 19:29:50 +08:00
Add route-backed routing profile views
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user