fix: 前端修复拨码开关第一个无法开关的问题;后端修复进度条停止在3%的问题

This commit is contained in:
2025-08-17 13:46:14 +08:00
parent 55edfd771e
commit caa26c729e
4 changed files with 25 additions and 23 deletions

View File

@@ -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) {}
}