菜单 _blank 逻辑调整

This commit is contained in:
tangly1024.com
2023-08-02 16:02:27 +08:00
parent 37fa30d0d9
commit a937d060f4
24 changed files with 46 additions and 48 deletions

View File

@@ -24,7 +24,7 @@ const MenuGroupCard = (props) => {
<div key={index} className=''>
<Link title={link.to}
href={link.to}
target={link.to.indexOf('http') === 0 ? '_blank' : '_self'}
target={link?.to?.indexOf('http') === 0 ? '_blank' : '_self'}
className={'w-full flex items-center justify-between py-1 hover:scale-105 duration-200 transform dark:hover:text-indigo-400 hover:text-indigo-600 px-2 cursor-pointer'}>
<>
<div>{link.name} :</div>