解决官方评论不加载问题

This commit is contained in:
1152958806@qq.com 2023-08-02 22:45:47 +08:00
parent 4560268a12
commit 39ef86fa19
3 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,6 @@ var randomPostTips = ["钓到了绝世好文!", "在河边打了个喷嚏,
var randomPostClick = 0; var randomPostClick = 0;
function fetchRandomPost() { function fetchRandomPost() {
console.log(fdata.apiurl)
if (randomPostWorking == false) { if (randomPostWorking == false) {
randomPostWorking = true; randomPostWorking = true;
//获取旋转角度 //获取旋转角度

View File

@ -154,7 +154,6 @@ function fetchNextArticle() {
} else if (start = articleNum) { } else if (start = articleNum) {
document.getElementById('cf-more').outerHTML = `<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>` document.getElementById('cf-more').outerHTML = `<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>`
} }
window.lazyLoadInstance.update()
} }
// 显示下一页文章,从本地缓存 nextArticle 中获取 // 显示下一页文章,从本地缓存 nextArticle 中获取

View File

@ -110,6 +110,9 @@
<!-- 动态标题 --> <!-- 动态标题 -->
<script th:replace="~{modules/common/diytitle :: diytitle}"></script> <script th:replace="~{modules/common/diytitle :: diytitle}"></script>
<!--官方评论插件js-->
<script th:if="${pluginFinder.available('PluginCommentWidget')}" src="/plugins/PluginCommentWidget/assets/static/comment-widget.iife.js"></script>
<div id="js-pjax"></div> <div id="js-pjax"></div>
<script th:if="${theme.config.envelope_comment.enable_danmu}" th:src="${assets_link + '/libs/twikoo/easy-Danmaku.js' + theme_version}" id="Danmaku"></script> <script th:if="${theme.config.envelope_comment.enable_danmu}" th:src="${assets_link + '/libs/twikoo/easy-Danmaku.js' + theme_version}" id="Danmaku"></script>