feat(docs-theme): update changelog link

This commit is contained in:
chenos 2023-05-25 22:21:52 +08:00
parent 27a74906ff
commit 2ebb6737c3
3 changed files with 13 additions and 3 deletions

View File

@ -68,8 +68,8 @@ const parseMenuItems = (items: any[], lang: string) => {
}); });
} else { } else {
menuItems.push({ menuItems.push({
title: getTitle(item, lang),
...item, ...item,
title: getTitle(item, lang),
}); });
} }
} }

View File

@ -49,7 +49,17 @@ export default {
'title.zh-CN': '路线图 & 发布', 'title.zh-CN': '路线图 & 发布',
'title.TR-TR': 'Sürüm', 'title.TR-TR': 'Sürüm',
type: 'group', type: 'group',
children: ['/welcome/release/roadmap', '/welcome/release/index', '/welcome/release/v08-changelog'], children: [
'/welcome/release/roadmap',
{
type: 'item',
title: 'Changelog',
'title.zh-CN': '更新日志',
link: 'https://github.com/nocobase/nocobase/blob/main/CHANGELOG.md',
},
// '/welcome/release/index',
'/welcome/release/v08-changelog',
],
}, },
{ {
title: 'Community', title: 'Community',

View File

@ -47,7 +47,7 @@ const SideMenu: FC<INavbarProps> = ({ theme, mobileMenuCollapsed, location, dark
} }
return ( return (
<Menu.Item disabled={!!item.disabled} eventKey={item.path}> <Menu.Item disabled={!!item.disabled} eventKey={item.path}>
<NavLink to={item.path}>{item.title}</NavLink> {item.link ? <a target={'_blank'} href={item.link}>{item.title}</a> : <NavLink to={item.path}>{item.title}</NavLink>}
</Menu.Item> </Menu.Item>
); );
}); });