From 9aae30eca2c905b8fa462c376af1d52105ed7d55 Mon Sep 17 00:00:00 2001 From: nineya <361654768@qq.com> Date: Fri, 22 Dec 2023 11:59:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(comment):=20=E4=BF=AE=E5=A4=8D=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E8=AF=84=E8=AE=BA=E4=BE=A7=E8=BE=B9=E6=A0=8F=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/common.js | 4 ++-- templates/links.html | 2 +- templates/main/article.html | 2 +- templates/moments.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/js/common.js b/src/js/common.js index a2a0cf5..25dbc2b 100644 --- a/src/js/common.js +++ b/src/js/common.js @@ -408,11 +408,11 @@ const commonContext = { if (!window.CommentWidget) { return } - $('.widget-comment').each(function (index, item) { + $('.comment-section').each(function (index, item) { let target = $(this).attr('data-target') let id = $(this).attr('data-id') CommentWidget.init( - `.widget-comment[data-id='${id}'][data-target='${target}']`, + `.comment-section[data-id='${id}'][data-target='${target}']`, '/plugins/PluginCommentWidget/assets/static/style.css', { group: target === 'Moment' ? 'moment.halo.run' : 'content.halo.run', diff --git a/templates/links.html b/templates/links.html index baa3ef6..0e97da6 100644 --- a/templates/links.html +++ b/templates/links.html @@ -48,7 +48,7 @@

评论

-
+
\ No newline at end of file diff --git a/templates/main/article.html b/templates/main/article.html index 30fa594..4b99666 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -91,6 +91,6 @@

评论

-
+
\ No newline at end of file diff --git a/templates/moments.html b/templates/moments.html index 52ece56..bb53233 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -38,7 +38,7 @@
-
+