添加评论展示功能

This commit is contained in:
yi-ge 2020-07-19 21:28:10 +08:00
parent af2b675052
commit ada4718146
2 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@
li(v-for='(newComment, index) in $store.state.newComments', :key='index')
strong {{ newComment.comment_author }}
span
nuxt-link(:to="'/post/' + newComment.post.ID + '#comments'") {{ newComment.comment_content }}
nuxt-link(:to="'/post/' + newComment.post.ID + '#comments'" v-html="newComment.comment_content_html")
.meta
span
Icon(:icon="['far', 'clock']")

View File

@ -358,6 +358,9 @@ input:-moz-placeholder
white-space nowrap
text-overflow ellipsis
img
width 100%
.posts
margin-bottom 40px