Skip to content

Commit

Permalink
fix: title
Browse files Browse the repository at this point in the history
  • Loading branch information
wmui committed Jun 25, 2023
1 parent b24e0b0 commit 17c82b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/service/option.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions app/view/theme/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
登录-<%= site.nickname %>
<%} else if(router === 'setting') {%>
设置-<%= site.nickname %>
<%} else if(router === 'board') {%>
留言板-<%= site.nickname %>
<%} else { %>
404
<%}%>
Expand Down

0 comments on commit 17c82b8

Please sign in to comment.