Skip to content

Commit

Permalink
fix #35 搜索结果时间显示错误
Browse files Browse the repository at this point in the history
- 搜索结果使用发帖时间
  • Loading branch information
AsukaSong committed Mar 10, 2019
1 parent ffaae43 commit f8ed9f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/TopicList/TopicListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default ({ data, place }: Props) => {
info1 = dayjs(data.time).fromNow()
case 'follow':
case 'search':
// 搜索时使用发帖时间
// https://github.com/ZJU-CC98/CC98-PWA/issues/35
info1 = dayjs(data.time).fromNow()
info2 = boardName
break

Expand Down

0 comments on commit f8ed9f9

Please sign in to comment.