字符串isEmpty判断是否为空

This commit is contained in:
RuoYi
2020-08-04 10:33:33 +08:00
parent f80a312b9b
commit 30278a0451
2 changed files with 8 additions and 8 deletions

View File

@@ -134,7 +134,7 @@
<div class="row container">
<div class="col-md-10">
<div class="imageBox">
<img id="avatar" th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}" >
<img id="avatar" th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" >
</div>
<div class="action">
<div class="new-contentarea tc">