diff --git a/config/routes.ts b/config/routes.ts index 08db875..e423b0a 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -17,13 +17,15 @@ const routes: IRoute[] = [ exact: true, icon: 'home', name: '主页', + description: + 'CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。', component: '@/page/topic', }, { path: '/my/messages', exact: true, icon: 'message', - name: '未读消息', + title: '未读消息', access: 'canReadMessage', component: '@/page/message', }, diff --git a/src/layout/index.tsx b/src/layout/index.tsx index c832ff9..3ccd2dc 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -40,6 +40,7 @@ const Layout: React.FC> = (props) => { let headerConfig: any = { title: currentRoute?.title || currentRoute?.name, + subTitle: currentRoute?.description, }; const detailRegx = /\/(topic|user)\/(.*)/g;