mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-10-14 09:49:19 +00:00
修改api调用方式
This commit is contained in:
parent
71243319e4
commit
1776a6bd2c
@ -128,10 +128,8 @@ const ConfigPage = () => {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
commands.push({
|
||||
username: deviceConfig.username,
|
||||
password: deviceConfig.password,
|
||||
});
|
||||
commands.push(`username=${deviceConfig.username.toString()}`);
|
||||
commands.push(`password=${deviceConfig.password.toString()}`);
|
||||
await api.applyConfig(selectedDevice, commands);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user