s删除注释

This commit is contained in:
qiuchenfan 2025-11-19 16:01:05 +08:00
parent 2a41465de0
commit fffc57ce83
1 changed files with 1 additions and 9 deletions

View File

@ -29,15 +29,7 @@ export function TopNav({
const [internalActiveKey, setInternalActiveKey] = useState('home');
const currentActiveKey = externalActiveKey !== undefined ? externalActiveKey : internalActiveKey;
const [searchKeyword, setSearchKeyword] = useState('');
// const [activeIndex, setActiveIndex] = useState(0);
// const [prevIndex, setPrevIndex] = useState(0);
// 监听激活项变化,更新索引和动画方向
// useEffect(() => {
// const currentIndex = menuItems.findIndex(item => item.key === currentActiveKey);
// setPrevIndex(activeIndex);
// setActiveIndex(currentIndex);
// }, [currentActiveKey, menuItems, activeIndex]);
const handleSearchSubmit = (e: React.FormEvent) => {
e.preventDefault();