This commit is contained in:
joylink_zhaoerwei 2023-11-02 10:26:08 +08:00
parent 47f0f93c0c
commit c110a716ed
3 changed files with 3 additions and 2 deletions

View File

@ -167,7 +167,7 @@ function updateMap() {
? 'Q' ? 'Q'
: 'H'; : 'H';
if (refDeviceData) { if (refDeviceData) {
return `${refDeviceData?.device}_${refDeviceData?.combinationtype}_${relay.datas.code}_${pos}`; return `${refDeviceData.device}_${refDeviceData.combinationtype}_${relay.datas.code}_${pos}`;
} else { } else {
return `${conbinationData}_${relay.datas.code}_${pos}`; return `${conbinationData}_${relay.datas.code}_${pos}`;
} }

View File

@ -163,7 +163,7 @@ function updateMap() {
.getDrawApp() .getDrawApp()
.queryStore.queryById<Relay>(refRelay); .queryStore.queryById<Relay>(refRelay);
if (refDeviceData) { if (refDeviceData) {
return `${refDeviceData?.device}_${refDeviceData?.combinationtype}_${relay.datas.code}`; return `${refDeviceData.device}_${refDeviceData.combinationtype}_${relay.datas.code}`;
} else { } else {
return `${conbinationData}_${relay.datas.code}`; return `${conbinationData}_${relay.datas.code}`;
} }

View File

@ -162,6 +162,7 @@ export function initDrawApp(): IDrawApp {
refRelaysList = []; refRelaysList = [];
combinationTypeList = []; combinationTypeList = [];
refRelaysListMap.clear(); refRelaysListMap.clear();
combinationListMap.clear();
}); });
return drawApp; return drawApp;
} }