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