浏览代码

导入Excel调整

MaiXinRong 4 年之前
父节点
当前提交
f7bb742c05
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);