Bläddra i källkod

导入Excel调整

MaiXinRong 4 år sedan
förälder
incheckning
f7bb742c05
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 splitChar = this.splitChar;
         const firstPart = this.roots[0];
         const firstPart = this.roots[0];
         firstPart.children.sort(function (a, b) {
         firstPart.children.sort(function (a, b) {
-            if (a.code === '') {
+            if (!a.code) {
                 return 1;
                 return 1;
-            } else if (b.code === '') {
+            } else if (!b.code) {
                 return -1;
                 return -1;
             }
             }
             const codeA = a.code.split(splitChar);
             const codeA = a.code.split(splitChar);