Browse Source

Merge branch 'debelop' of http://192.168.1.222:3000/zhoufan/RMYY_CallCenter_UI into debelop

weieryang 3 years ago
parent
commit
ec050c5a9c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      CallCenterWeb.UI/RMYY/src/utils/index.js

+ 4 - 0
CallCenterWeb.UI/RMYY/src/utils/index.js

@@ -479,6 +479,10 @@ export function buildTree(list) {
479 479
   for (const i in temp) {
480 480
     // if (temp[i].pid !== 'Moudle_000000000000000000000000') {
481 481
     if (temp[i].pid !== 0) {
482
+      if (!temp[temp[i].pid]) {
483
+        temp[temp[i].pid] = {}
484
+      }
485
+
482 486
       if (!temp[temp[i].pid].children) {
483 487
         temp[temp[i].pid].children = []
484 488
       }