Browse Source

导入Excel调整

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

+ 2 - 2
app/lib/analysis_excel.js

@@ -279,9 +279,9 @@ class ImportBaseTree {
         const splitChar = this.splitChar;
         const firstPart = this.roots[0];
         firstPart.children.sort(function (a, b) {
-            if (a.code === '') {
+            if (!a.code) {
                 return 1;
-            } else if (b.code === '') {
+            } else if (!b.code) {
                 return -1;
             }
             const codeA = a.code.split(splitChar);