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'
: '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}`;
}

View File

@ -163,7 +163,7 @@ function updateMap() {
.getDrawApp()
.queryStore.queryById<Relay>(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}`;
}

View File

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