limeng 7 달 전
부모
커밋
093cc141da
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/resources/templates/www/tuiyijunren/index.html

+ 3 - 3
src/main/resources/templates/www/tuiyijunren/index.html

@@ -61,7 +61,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>
@@ -76,7 +76,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>
@@ -91,7 +91,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>