Browse Source

update:在回复系统界面里去除authorId

feature/unlimited-reply
zjz1993 5 years ago
parent
commit
fa21171434
  1. 4
      views/article.ejs

4
views/article.ejs

@ -138,10 +138,8 @@
</a>
<div class="content">
<a class="author" :href="userUrl(data.user.id)" >{{data.user.username}}</a>
<span v-if="data.user.id === authorId">(作者)</span>
回复给
<a class="author" :href="userUrl(data.toUser.id)" >{{data.toUser.username}}</a>
<span v-if="data.toUser.id === authorId">(作者)</span>
<div v-if="data.user.nameplate">{{data.user.nameplate}}</div>
<div class="metadata">
<span class="date">{{data.date}}</span>
@ -162,7 +160,6 @@
<script>
var comments = <%- serializejs(comments) %>
var authorId = <%= authorId %>
var user = <%- serializejs(user) %>
var testComponent = Vue.component("comment-box", {
template: "#test-comment",
@ -196,7 +193,6 @@
el: '#comment-zone',
data:{
comments:comments,
authorId,
user
}
})

Loading…
Cancel
Save