Skip to content

Commit 8e8383d

Browse files
authored
feat: update route (#19)
1 parent 746cc8d commit 8e8383d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/routes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ const routes: IRoute[] = [
1717
exact: true,
1818
icon: 'home',
1919
name: '主页',
20+
description:
21+
'CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。',
2022
component: '@/page/topic',
2123
},
2224
{
2325
path: '/my/messages',
2426
exact: true,
2527
icon: 'message',
26-
name: '未读消息',
28+
title: '未读消息',
2729
access: 'canReadMessage',
2830
component: '@/page/message',
2931
},

src/layout/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const Layout: React.FC<React.PropsWithChildren<Props>> = (props) => {
4040

4141
let headerConfig: any = {
4242
title: currentRoute?.title || currentRoute?.name,
43+
subTitle: currentRoute?.description,
4344
};
4445

4546
const detailRegx = /\/(topic|user)\/(.*)/g;

0 commit comments

Comments
 (0)