Преглед на файлове

update ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html.

Hacker преди 4 години
родител
ревизия
674d236007
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html

+ 1 - 1
ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html

@@ -16,7 +16,7 @@
                 </div>
                 <div class="ibox-content">
                     <div class="text-center">
-                        <p class="user-info-head" onclick="avatar()"><img class="img-circle img-lg" th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"></p>
+                        <p class="user-info-head" onclick="avatar()"><img class="img-circle img-lg" th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}"></p>
                         <p><a href="javascript:avatar()">修改头像</a></p>
                     </div>
                     <ul class="list-group list-group-striped">