fix: 更新停靠点启用状态逻辑,确保正确处理启用状态为0的情况

This commit is contained in:
xudan 2025-07-30 11:16:53 +08:00
parent 1b4c6b2552
commit def0eef355

View File

@ -234,7 +234,7 @@ export class EditorService extends Meta2d {
point.deviceId = deviceId; point.deviceId = deviceId;
} }
if (MapPointType. === type) { if (MapPointType. === type) {
point.enabled = enabled; point.enabled = enabled === 0 ? 0 : 1; //默认启用
} }
return point; return point;
} }