File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 = / \/ ( t o p i c | u s e r ) \/ ( .* ) / g;
You can’t perform that action at this time.
0 commit comments