diff --git a/src/components/draw-app/dialogs/CiCjList.vue b/src/components/draw-app/dialogs/CiCjList.vue index 75e1f1f..b82302c 100644 --- a/src/components/draw-app/dialogs/CiCjList.vue +++ b/src/components/draw-app/dialogs/CiCjList.vue @@ -167,7 +167,7 @@ function updateMap() { ? 'Q' : 'H'; if (refDeviceData) { - return `${refDeviceData?.device}_${refDeviceData?.combinationtype}_${relay.datas.code}_${pos}`; + return `${refDeviceData.device}_${refDeviceData.combinationtype}_${relay.datas.code}_${pos}`; } else { return `${conbinationData}_${relay.datas.code}_${pos}`; } diff --git a/src/components/draw-app/dialogs/CiQdList.vue b/src/components/draw-app/dialogs/CiQdList.vue index 0ad8c76..d5cfadc 100644 --- a/src/components/draw-app/dialogs/CiQdList.vue +++ b/src/components/draw-app/dialogs/CiQdList.vue @@ -163,7 +163,7 @@ function updateMap() { .getDrawApp() .queryStore.queryById(refRelay); if (refDeviceData) { - return `${refDeviceData?.device}_${refDeviceData?.combinationtype}_${relay.datas.code}`; + return `${refDeviceData.device}_${refDeviceData.combinationtype}_${relay.datas.code}`; } else { return `${conbinationData}_${relay.datas.code}`; } diff --git a/src/drawApp/relayCabinetLayoutApp.ts b/src/drawApp/relayCabinetLayoutApp.ts index 0157462..83390c5 100644 --- a/src/drawApp/relayCabinetLayoutApp.ts +++ b/src/drawApp/relayCabinetLayoutApp.ts @@ -162,6 +162,7 @@ export function initDrawApp(): IDrawApp { refRelaysList = []; combinationTypeList = []; refRelaysListMap.clear(); + combinationListMap.clear(); }); return drawApp; }