From 17c82b857a7535c71d4223689bdbd3216dd35593 Mon Sep 17 00:00:00 2001 From: wmui Date: Sun, 25 Jun 2023 21:12:50 +0800 Subject: [PATCH] fix: title --- app/service/option.js | 2 +- app/view/theme/layout.ejs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/service/option.js b/app/service/option.js index ad60e28..10c71fb 100644 --- a/app/service/option.js +++ b/app/service/option.js @@ -41,7 +41,7 @@ class OptionService extends Service { } async findBoard() { - const result = await this.ctx.model.Option.find({ name: 'board' }); + const result = await this.ctx.model.Option.find({ name: 'board' }).order({ createAt: 'desc' }); return result; } diff --git a/app/view/theme/layout.ejs b/app/view/theme/layout.ejs index b118dac..7675b80 100644 --- a/app/view/theme/layout.ejs +++ b/app/view/theme/layout.ejs @@ -14,6 +14,8 @@ 登录-<%= site.nickname %> <%} else if(router === 'setting') {%> 设置-<%= site.nickname %> + <%} else if(router === 'board') {%> + 留言板-<%= site.nickname %> <%} else { %> 404 <%}%>