소스 검색

采美百科上测试

喻文俊 3 년 전
부모
커밋
b144215ac6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/templates/encyclopedia/more.html

+ 1 - 1
src/main/resources/templates/encyclopedia/more.html

@@ -24,7 +24,7 @@
     <article class="article">
         <section class="section" th:each="item: *{results}">
             <!-- commodityType : 1 产品  2 仪器 -->
-            <a th:href="${item.commodityType == 1 ? 'product-' + item.productId + '.html' : 'product-' + item.instrument + '.html'}">
+            <a th:href="${item.commodityType eq 1 ? 'product-' + item.productId + '.html' : 'product-' + item.instrument + '.html'}">
                 <div class="cover">
                     <img th:src="${item.image}" th:alt="${item.name}"/>
                 </div>