small fix about link index

This commit is contained in:
tangly1024
2023-11-26 21:36:09 +08:00
parent 23ac2195c9
commit bf1597093c
15 changed files with 16 additions and 25 deletions

View File

@@ -24,7 +24,7 @@ export const MenuItem = ({ link }) => {
{/* 菜单 */}
<div
onClick={toggleOpenSubMenu}
className='nav-menu dark:text-neutral-400 text-gray-500 hover:text-black dark:hover:text-white text-sm text-gray w-full items-center duration-300 pt-2 font-light select-none flex justify-between cursor-pointer' key={link?.name}>
className='nav-menu dark:text-neutral-400 text-gray-500 hover:text-black dark:hover:text-white text-sm text-gray w-full items-center duration-300 pt-2 font-light select-none flex justify-between cursor-pointer' key={link?.to}>
{link?.subMenus
? (<>