소스 검색

锚点优化

zhouna 5 년 전
부모
커밋
75ad442dc0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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">