From cc6d5f5fb6bbb23e88a95752a6e5265323d1c7d9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 17 十二月 2021 09:00:03 +0800
Subject: [PATCH] #

---
 static/js/object/CrnTask.js |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/static/js/object/CrnTask.js b/static/js/object/CrnTask.js
index d42e511..226d367 100644
--- a/static/js/object/CrnTask.js
+++ b/static/js/object/CrnTask.js
@@ -26,8 +26,6 @@
     that.crnFork = null;
 
     let curves = [];
-    that.curve = null;
-    that.progress = 0;
 
     let init = function () {
         that.crnNo = crnData.crnNo;
@@ -134,14 +132,12 @@
                     ])
                 })
             }
+
+            curves.map((value, index) => {
+                console.log(value.part + " --> " + JSON.stringify(value.route.points))
+            });
+
             curves[0].start = true;
-
-            console.log(curves);
-
-            // new Route();    // load
-            // console.log(that.curve);
-            // console.log("pre" + JSON.stringify(that.prePosition));
-            // console.log(JSON.stringify(that.position));
 
         }
     }
@@ -161,7 +157,6 @@
                         }
                     } else {
                         let point = curves[i].route.getPoint(curves[i].progress);
-                        console.log(point)
                         if ( point && point.x ) {
                             switch (curves[i].part) {
                                 case 'body':

--
Gitblit v1.9.1