This commit is contained in:
Yuan 2023-06-20 08:48:49 +08:00
parent 357085e7fd
commit 553bcb4307

View File

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