|
|
|
@ -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 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|