From 383c4526649a4d1c9d19c3a947592fe8c2487905 Mon Sep 17 00:00:00 2001 From: Suyi Date: Thu, 6 Jan 2022 03:13:44 +0800 Subject: [PATCH] feat: update route --- config/routes.ts | 4 +++- src/layout/index.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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;