Procházet zdrojové kódy

采美百科上测试

喻文俊 před 3 roky
rodič
revize
b144215ac6

+ 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>