Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(question): 当回答没有人点赞时回答时间左移的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 19, 2018
1 parent 9cc6039 commit 229be62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/page/question/AnswerDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
</div>
<div class="m-box m-aln-center m-justify-bet m-art-foot">
<router-link
v-if="likeCount > 0"
class="m-flex-grow1 m-flex-shrink1 m-box m-aln-center m-art-like-list"
tag="div"
to="likers"
Expand All @@ -58,7 +57,7 @@
<img :src="getAvatar(user.avatar)">
</li>
</ul>
<span>{{ likeCount | formatNum }} 人点赞</span>
<span v-if="likeCount">{{ likeCount | formatNum }} 人点赞</span>
</router-link>
<div class="m-box-model m-aln-end m-art-info">
<span>发布于{{ time | time2tips }}</span>
Expand Down

0 comments on commit 229be62

Please sign in to comment.