Parcourir la source

修复获取项目节bug

laiguoran il y a 5 ans
Parent
commit
d6eb7d0ed1
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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;
         }
         // 数组去重