diff --git a/app/components/news/header/TopNav.tsx b/app/components/news/header/TopNav.tsx index 97015ab..38d95fe 100644 --- a/app/components/news/header/TopNav.tsx +++ b/app/components/news/header/TopNav.tsx @@ -44,15 +44,15 @@ export function TopNav({ } // 如果有对应的 sectionId,则滚动到该区域 - if (item.sectionId) { - const element = document.getElementById(item.sectionId); - if (element) { - element.scrollIntoView({ - behavior: 'smooth', // 平滑滚动 - block: 'start' // 滚动到顶部对齐 - }); - } - } + // if (item.sectionId) { + // const element = document.getElementById(item.sectionId); + // if (element) { + // element.scrollIntoView({ + // behavior: 'smooth', // 平滑滚动 + // block: 'start' // 滚动到顶部对齐 + // }); + // } + // } onItemClick?.(item.key); };