fix: 前端修复拨码开关第一个无法开关的问题;后端修复进度条停止在3%的问题
This commit is contained in:
@@ -167,7 +167,8 @@ function updateStatus(newStates: boolean[], index?: number) {
|
||||
if (props.enableDigitalTwin) {
|
||||
try {
|
||||
const client = getClient();
|
||||
if (!isUndefined(index)) client.setSwitchOnOff(index, newStates[index]);
|
||||
if (!isUndefined(index))
|
||||
client.setSwitchOnOff(index + 1, newStates[index]);
|
||||
else client.setMultiSwitchsOnOff(btnStatus.value);
|
||||
} catch (error: any) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user