feat(platform): show link issue count in topbar

This commit is contained in:
lingniu
2026-07-03 22:54:44 +08:00
parent 94ea30223b
commit b3168dda2a
2 changed files with 18 additions and 3 deletions

View File

@@ -26,11 +26,13 @@ const navItems = [
export function AppShell({
activePage,
linkIssueCount,
onChange,
onVehicleSearch,
children
}: {
activePage: PageKey;
linkIssueCount: number | null;
onChange: (page: PageKey) => void;
onVehicleSearch: (keyword: string) => void;
children: ReactNode;
@@ -76,7 +78,9 @@ export function AppShell({
</Space>
<Space spacing={12}>
<Tag color="blue"></Tag>
<Button size="small" onClick={() => onChange('quality')}></Button>
<Button size="small" onClick={() => onChange('quality')}>
{linkIssueCount == null ? '链路监控' : linkIssueCount > 0 ? `链路 ${linkIssueCount} 项关注` : '链路正常'}
</Button>
</Space>
</header>
{children}