bugfix - deviceType比较
This commit is contained in:
parent
bcb0a1da98
commit
357085e7fd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user