Kaynağa Gözat

锚点优化

zhouna 5 yıl önce
ebeveyn
işleme
75ad442dc0
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/html/qcScore.html

+ 2 - 2
src/html/qcScore.html

@@ -730,9 +730,9 @@
         <div class="flaw-item" code="${modelName.replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'')}">
             <div class="title">
                 {{if info}}
-                <a href="#anchor${pageKeyList[0]}">${msg}(${info})</a>
+                <a {{if pageKeyList[0]}} href="#anchor${pageKeyList[0]}" {{/if}}>${msg}(${info})</a>
                 {{else}}
-                <a href="#anchor${pageKeyList[0]}">${msg}</a>
+                <a {{if pageKeyList[0]}} href="#anchor${pageKeyList[0]}" {{/if}}>${msg}</a>
                 {{/if}}
             </div>
             <div class="opers">