bugfix - deviceType比较

This commit is contained in:
Yuan 2023-06-19 17:40:27 +08:00
parent bcb0a1da98
commit 357085e7fd

View File

@ -85,7 +85,7 @@ export function createRelatedRefProto(
[TrainWindow.Type, graphicData.RelatedRef.DeviceType.TrainWindow],
]);
const protoDeviceType = typeMap.get(type);
if (!protoDeviceType) throw Error(`输入的type有误: ${type}`);
if (protoDeviceType !== undefined) throw Error(`输入的type有误: ${type}`);
const protoData = new graphicData.RelatedRef({
deviceType: protoDeviceType,
id,