소스 검색

术前讨论术前小结跳转问题

luolei 5 년 전
부모
커밋
5fbf9777d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/js/qcScore.js

+ 1 - 1
src/js/qcScore.js

@@ -182,7 +182,7 @@ function formatInfoData(k,data){
     $("#appointBookTmpl").tmpl({title,data}).appendTo(".flaw-table");
     $(".page-anchor").on("click",function(){
       const code=$(this).attr("code");
-      const pCode=$(this).parents("tr").attr("code");
+      const pCode=$(this).parents("tr").attr("code").replace(/[^\u4e00-\u9fa5|a-zA-Z0-9]+/g,'');
       //菜单同步状态
       $(".sub-menu .page[code="+pCode+"]").parents(".list-1").click();
       $(".sub-menu .page[code="+pCode+"],.menu-mini .page[code="+pCode+"").click();