From 7f3b04eb083ef82f3b2eb1407be375c4983ee3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Tue, 26 Aug 2025 14:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=B7=BB=E5=8A=A0=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E9=97=B4=E8=B7=9D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Base/BatchModel/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Obj/Base/BatchModel/index.js b/src/Obj/Base/BatchModel/index.js index 48598bf..5e71777 100644 --- a/src/Obj/Base/BatchModel/index.js +++ b/src/Obj/Base/BatchModel/index.js @@ -38,7 +38,7 @@ class BatchModel extends Base { this.options.name = options.name || '批量模型' this.options.type = options.type || '面' this.options.url = options.url || '' - this.options.spacing = options.spacing || 50 + this.options.spacing = options.spacing * 1 || 50 this.options.positions = options.positions || [] this.options.show = (options.show || options.show === false) ? options.show : true this.callback = callback @@ -50,6 +50,10 @@ class BatchModel extends Base { let tools = new Tools(sdk) // BatchModel.computeDis(this) // if (this.options.positions.length > 0 || this.options.positions.lng) { + if (this.options.spacing < 0 || options.spacing * 1 === 0) { + tools.message({ type: 'warning', text: '请输入正确的间距!' }) + return; + } if ((options.type && options.spacing != undefined) || options.type == '点') { // BatchModel.computeDis(this)