Browse Source

修复获取项目节bug

laiguoran 5 years ago
parent
commit
d6eb7d0ed1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/public/js/change_set.js

+ 3 - 0
app/public/js/change_set.js

@@ -49,6 +49,9 @@ $(document).ready(() => {
 
         gclGatherData = gclGatherModel.gatherGclData();
         for (const ggd in gclGatherData) {
+            if (gclGatherData[ggd].leafXmjs && gclGatherData[ggd].leafXmjs.length === 0) {
+                gclGatherData.splice(ggd, 1);
+            }
             gclGatherData[ggd].code = gclGatherData[ggd].b_code;
         }
         // 数组去重