Browse Source

path长度小于1不更新

龚成明 3 years ago
parent
commit
501309a7ea
1 changed files with 3 additions and 1 deletions
  1. 3 1
      scripts/path/level2Generate.ts

+ 3 - 1
scripts/path/level2Generate.ts

@@ -60,7 +60,9 @@ class Level2Generate {
         }
       }
 
-      await SwapPath.appendOrUpdate(sum2, '2', pathList)
+      if (pathList.length > 0) {
+        await SwapPath.appendOrUpdate(sum2, '2', pathList)
+      }
     }
   }