修复首页文章加载形式为 加载 时,总文章数量小于文章列表显示条数,点击查看更多会导致重复加载文章

This commit is contained in:
yundabei 2023-12-08 14:06:12 +08:00
parent 75ba9dc223
commit 27b4387db7
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<th:block th:if="${!theme.config.home.enable_index_list_ajax}">
<th:block th:replace="~{modules/common/pagination :: pagination}" />
</th:block>
<th:block th:if="${theme.config.home.enable_index_list_ajax}">
<th:block th:if="${posts.hasNext()}">
<div class="joe_load_container"
th:with="nextPage = ${posts.totalPages == posts.page?'':posts.nextUrl}">
<div class="joe_load" th:data-next="@{${nextPage}}">查看更多 </div>