Ver código fonte

锚点优化

zhouna 5 anos atrás
pai
commit
75ad442dc0
1 arquivos alterados com 2 adições e 2 exclusões
  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">