From 564b20bb1821d5c7b77361b65c632234893f629e Mon Sep 17 00:00:00 2001
From: jinglun-cloud <jinglun2019@foxmail.com>
Date: 星期三, 06 五月 2026 08:42:46 +0800
Subject: [PATCH] 简化默认设备长宽逻辑

---
 src/main/webapp/static/js/basMap/editor.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/basMap/editor.js b/src/main/webapp/static/js/basMap/editor.js
index 0d65549..c16a591 100644
--- a/src/main/webapp/static/js/basMap/editor.js
+++ b/src/main/webapp/static/js/basMap/editor.js
@@ -337,7 +337,7 @@
         const centerX = type === 'annulus' ? item.x : item.x + item.width / 2;
         const centerY = type === 'annulus' ? item.y : item.y + item.height / 2;
 
-        // 涓� getDeviceInfo / getDevicePixelBoxForTrack 涓�鑷�
+        // 涓� getDeviceInfo / getAutoTrackDeviceBox 涓�鑷�
         const drawW = Math.max(2, Math.round(item.width));
         const drawH = Math.max(2, Math.round(item.height));
 
@@ -2326,7 +2326,6 @@
         });
       },
       addDeviceForm: function () {
-        const defaultDeviceBox = this.getAutoTrackDeviceBox();
         this.deviceForm.deviceList.push({
           valueKey: '',
           deviceNo: '',

--
Gitblit v1.9.1