소스 검색

中间计量问题

MaiXinRong 1 년 전
부모
커밋
cc4d6e6174
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/lib/ledger.js

+ 2 - 0
app/lib/ledger.js

@@ -26,6 +26,8 @@ class baseTree {
         this.children = [];
         // 树设置
         this.setting = setting;
+        if (!this.setting.isLeaf) this.setting.isLeaf = 'is_leaf';
+        if (!this.setting.fullPath) this.setting.fullPath = 'full_path';
     }
     clear() {
         // 无索引