Commit 1fb156893cfbce3e70bf7acce8f4585bdc770ed0
1 parent
7447828e
修改话题审核无图片时显示裂图的问题
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/resources/templates/page/topic.html
| @@ -250,7 +250,7 @@ | @@ -250,7 +250,7 @@ | ||
| 250 | <td style="text-align: center; vertical-align:middle;width: 6%;"> | 250 | <td style="text-align: center; vertical-align:middle;width: 6%;"> |
| 251 | <div width="60px" height="60px"><img | 251 | <div width="60px" height="60px"><img |
| 252 | th:src="@{${topic.topic_image}}" width="60px" height="60px" | 252 | th:src="@{${topic.topic_image}}" width="60px" height="60px" |
| 253 | - alt="话题图片"></div> | 253 | + alt="话题图片" th:if="${topic.topic_image!=null and topic.topic_image!=''}"></div> |
| 254 | </td> | 254 | </td> |
| 255 | <td style="text-align: center; vertical-align:middle; width: 14%;" | 255 | <td style="text-align: center; vertical-align:middle; width: 14%;" |
| 256 | th:text="${topic.title}">优秀传统文化与现代幼儿教育 教师研修班 | 256 | th:text="${topic.title}">优秀传统文化与现代幼儿教育 教师研修班 |