From eb651f32997d28355e3f559903d97282deb00662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Thu, 18 Dec 2025 10:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Draw/drawPolyline.js | 3 +-- src/Obj/Base/BatchModel/index.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Draw/drawPolyline.js b/src/Draw/drawPolyline.js index 4317f70..3c9cd1c 100644 --- a/src/Draw/drawPolyline.js +++ b/src/Draw/drawPolyline.js @@ -137,8 +137,7 @@ class DrawPolyline extends Draw { this.end() } else { - // cb(cache_positions.length) - cb(null, cache_positions) + cb(cache_positions.length) } }) this.event.mouse_right((movement, cartesian) => { diff --git a/src/Obj/Base/BatchModel/index.js b/src/Obj/Base/BatchModel/index.js index d681af9..14bda68 100644 --- a/src/Obj/Base/BatchModel/index.js +++ b/src/Obj/Base/BatchModel/index.js @@ -72,7 +72,7 @@ class BatchModel extends Base { break; } Draw && Draw.start((a, positions) => { - console.log(positions, 'positions') + if (!positions) { return } this.options.positions = positions; //判断范围是否过大 if (options.type == '面') {