Browse Source

附属工程量,排序问题

MaiXinRong 1 năm trước cách đây
mục cha
commit
71d676e6a4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/public/js/path_tree.js

+ 2 - 2
app/public/js/path_tree.js

@@ -2132,7 +2132,7 @@ const createAncillaryGcl = function (setting) {
                 const masterKey = this.itemPre + d[this.setting.masterId];
                 if (!this.masterIndex[masterKey]) this.masterIndex[masterKey] = [];
                 this.masterIndex[masterKey].push(d);
-                if (resort.indexOf(masterKey) < -1) resort.push(masterKey);
+                if (resort.indexOf(masterKey) < 0) resort.push(masterKey);
             }
         }
 
@@ -2149,7 +2149,7 @@ const createAncillaryGcl = function (setting) {
                     item[prop] = d[prop];
                 }
                 const masterKey = this.itemPre + item[this.setting.masterId];
-                if (resort.indexOf(masterKey) === -1) resort.push(masterKey);
+                if (resort.indexOf(masterKey) < 0) resort.push(masterKey);
             }
 
         }