소스 검색

代码强壮性处理

Tony Kang 1 년 전
부모
커밋
d67c671a8e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/building_saas/standard_interface/export/zhejiang_hangzhou.js

+ 1 - 1
web/building_saas/standard_interface/export/zhejiang_hangzhou.js

@@ -319,7 +319,7 @@ INTERFACE_EXPORT = (() => {
             }
             cur = cur.parent;
           }
-          return (cur.data.name || '').replace(/[^0-9]/g, '');
+          return (cur?.data?.name || '').replace(/[^0-9]/g, '');
         } else {
           const sectionCode = (node.data.name || '').replace(/[^0-9]/g, '');
           node.data.sectionCode = sectionCode;