From b3de26a4f625f901080e92b0d73e1e90141d6d0a Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 06 十二月 2025 09:38:57 +0800
Subject: [PATCH] 图片回显修改

---
 fzzy-igdss-web/src/main/resources/templates/snapRecord/snapRecord.html |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/templates/snapRecord/snapRecord.html b/fzzy-igdss-web/src/main/resources/templates/snapRecord/snapRecord.html
index e3f1bc1..af916a6 100644
--- a/fzzy-igdss-web/src/main/resources/templates/snapRecord/snapRecord.html
+++ b/fzzy-igdss-web/src/main/resources/templates/snapRecord/snapRecord.html
@@ -39,10 +39,8 @@
                 </div>
                 <!-- 鍥剧墖鍗$墖 -->
                 <div th:each="snapRecord : ${snapRecordList}" class="gallery-item">
-<!--                    <img th:src="${snapRecord.imgPath}" th:alt="${snapRecord.id}"-->
-<!--                         th:data-url="${snapRecord.imgPath}" th:data-id="${snapRecord.id}"-->
-                    <img th:src="@{/logo-sm.png}" th:alt="${snapRecord.id}"
-                         th:data-url="@{/logo-sm.png}" th:data-id="${snapRecord.id}"
+                    <img th:src="${snapRecord.imgName ?: '/logo-sm.png'}" th:alt="${snapRecord.id}"
+                         th:data-url="${snapRecord.imgName ?: '/logo-sm.png'}" th:data-id="${snapRecord.id}"
                          class="gallery-img" onclick="showSnapRecordPreview(this.getAttribute('data-url'))">
                     <div class="gallery-info">
                         <div class="gallery-header">

--
Gitblit v1.9.3