瀏覽代碼

修复获取项目节bug

laiguoran 5 年之前
父節點
當前提交
d6eb7d0ed1
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;
         }
         // 数组去重