diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx index 72b88af..5ad5a9e 100644 --- a/apps/desktop/src/App.tsx +++ b/apps/desktop/src/App.tsx @@ -115,6 +115,7 @@ function App() { } /> } /> } /> + } /> } /> } /> diff --git a/apps/desktop/src/components/Navigation.tsx b/apps/desktop/src/components/Navigation.tsx index 57cc36f..cc2347d 100644 --- a/apps/desktop/src/components/Navigation.tsx +++ b/apps/desktop/src/components/Navigation.tsx @@ -46,9 +46,9 @@ const Navigation: React.FC = () => { }, { name: '穿搭', - href: '/fashion-chat', + href: '/outfit', icon: SparklesIcon, - description: 'AI智能服装搭配推荐' + description: 'AI穿搭方案推荐与素材检索' }, { name: '工具', @@ -62,6 +62,13 @@ const Navigation: React.FC = () => { if (href === '/') { return location.pathname === '/'; } + + // 特殊处理:工具页面只匹配 /tools 本身,不匹配子路径 + if (href === '/tools') { + return location.pathname === '/tools'; + } + + // 其他路径使用 startsWith 匹配 return location.pathname.startsWith(href); };