s删除注释
This commit is contained in:
parent
2a41465de0
commit
fffc57ce83
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue