diff --git a/.umirc.ts b/.umirc.ts index 271985830..9a81d36d8 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -68,8 +68,8 @@ const parseMenuItems = (items: any[], lang: string) => { }); } else { menuItems.push({ - title: getTitle(item, lang), ...item, + title: getTitle(item, lang), }); } } diff --git a/docs/menus.ts b/docs/menus.ts index 311ed27d5..c7ea23514 100644 --- a/docs/menus.ts +++ b/docs/menus.ts @@ -49,7 +49,17 @@ export default { 'title.zh-CN': '路线图 & 发布', 'title.TR-TR': 'Sürüm', 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', diff --git a/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx b/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx index 232c16bee..356544984 100755 --- a/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx +++ b/packages/core/dumi-theme-nocobase/src/components/SideMenu.tsx @@ -47,7 +47,7 @@ const SideMenu: FC = ({ theme, mobileMenuCollapsed, location, dark } return ( - {item.title} + {item.link ? {item.title} : {item.title}} ); });