This commit is contained in:
joylink_zhaoerwei 2023-09-28 14:27:35 +08:00
parent 4924dd48fe
commit b433c7d52f

View File

@ -145,7 +145,9 @@ watch(
selectGraphic = Array.from(new Set(selectGraphic));
relayCabinetStore.getDrawApp().updateSelected(...selectGraphic);
relateRelayConfig.value.combinationtypes[clickIndex].refRelaysCode =
selectGraphic.map((g) => (g as Relay).datas.code) as string[];
selectGraphic.map((g) =>
(g as Relay).datas.code == '' ? g.id : (g as Relay).datas.code
);
relateRelayConfig.value.combinationtypes[clickIndex].refRelays =
selectGraphic.map((g) => g.id) as string[];
}