diff --git a/src/components/draw-app/properties/RelateRelayConfig.vue b/src/components/draw-app/properties/RelateRelayConfig.vue index 12b46d8..74c5afb 100644 --- a/src/components/draw-app/properties/RelateRelayConfig.vue +++ b/src/components/draw-app/properties/RelateRelayConfig.vue @@ -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[]; }