浏览代码

中间计量问题

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() {
         // 无索引