zhangweicheng 4 năm trước cách đây
mục cha
commit
91ba8d1c56
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web/building_saas/pm/js/pm_tree.js

+ 1 - 1
web/building_saas/pm/js/pm_tree.js

@@ -332,7 +332,7 @@ const pmTree = {
                     node.children = parentMap[node.data.ID] || [];
                     node.parent = IDMap[node.data.ParentID] || this._root;
                 });
-                const roots = parentMap['-1'];
+                const roots = parentMap['-1']||[];
                 // 将各节点的children进行排序,并设置nextSibling
                 this._root.children = sortChildren(roots);
                 // 生成tree.items