zhangweicheng %!s(int64=4) %!d(string=hai) anos
pai
achega
91ba8d1c56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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