fix: 更新停靠点启用状态逻辑,确保正确处理启用状态为0的情况
This commit is contained in:
parent
1b4c6b2552
commit
def0eef355
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user