Browse Source

增强项目树处理不合理数据能力

Tony Kang 3 năm trước cách đây
mục cha
commit
4efc6bc976
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/web/treeDataHelper.js

+ 1 - 1
public/web/treeDataHelper.js

@@ -117,7 +117,7 @@ let tree_Data_Helper = {
                     }
                 }
             }
-            if (parseInt(data[i][P_ID]) !== EMPTY_ID_VAL) {
+            if (parseInt(data[i][P_ID]) !== EMPTY_ID_VAL && tmpNodes[prefix + data[i][P_ID]] !== undefined) {
                 tmpNodes[prefix + data[i][P_ID]][SUB_ID].push(data[i][NODE_ID]);
             }
         }