fix(comment): 修复评论标签显示错误问题,#55

This commit is contained in:
nineya 2023-11-15 14:49:07 +08:00
parent d3971cb53d
commit 7e2bcb3ef1
3 changed files with 3 additions and 3 deletions

View File

@ -415,7 +415,7 @@ const commonContext = {
`.widget-comment[data-id='${id}'][data-target='${target}']`, `.widget-comment[data-id='${id}'][data-target='${target}']`,
'/plugins/PluginCommentWidget/assets/static/style.css', '/plugins/PluginCommentWidget/assets/static/style.css',
{ {
group: 'content.halo.run', group: target === 'Moment' ? 'moment.halo.run' : 'content.halo.run',
kind: target, kind: target,
name: id, name: id,
colorScheme: window.dataTheme colorScheme: window.dataTheme

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
<span class="journal-operation-item" th:if="${enableComment}"> <span class="journal-operation-item" th:if="${enableComment}">
<a class="comment"> <a class="comment">
<i class="ri-message-3-line"></i> <i class="ri-message-3-line"></i>
<em th:text="${(moment.stats.approvedComment != 0)? moment.stats.approvedComment : '评论'}"></em> <em th:text="${(moment.stats.totalComment != 0)? moment.stats.totalComment : '评论'}"></em>
</a> </a>
</span> </span>
<span class="journal-operation-item" th:if="${enableShare}"> <span class="journal-operation-item" th:if="${enableShare}">