Skip to content

Commit

Permalink
fix:图片重复加载问题(#227
Browse files Browse the repository at this point in the history
  • Loading branch information
jiewenhuang committed Mar 7, 2024
1 parent 8988971 commit c11ae36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/photos.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
<div class="wrapper">
<div class="grid" id="image-grid" th:data-total="${photos.totalPages}" th:data-index="${photos.page}">
<!-- 预留空间 -->
<th:block th:each="group : ${groups}">
<div class="grid-item wow fadeIn" th:each="photo : ${group.photos}" th:data-sjsel="${group.metadata.name}">
<div class="grid-item wow fadeIn" th:each="photo : ${photos.items}" th:data-sjsel="${photo.spec.groupName}">
<div class="card__picture">
<a class="item animated wow jg-entry" th:href="${photo.spec.url}" data-fancybox="gallery">
<img class="lazy-load" th:data-src="${photo.spec.url}" th:alt="${photo.spec.displayName}" th:src="@{/assets/img/photo_loading.gif}">
</a>
</div>
</div>
</th:block>
</div>
<th:block th:replace="~{modules/macro/loading :: loading}"/>
</div>
Expand Down

0 comments on commit c11ae36

Please sign in to comment.