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;
|
return false;
|
||||||
}
|
}
|
||||||
commands.push({
|
commands.push(`username=${deviceConfig.username.toString()}`);
|
||||||
username: deviceConfig.username,
|
commands.push(`password=${deviceConfig.password.toString()}`);
|
||||||
password: deviceConfig.password,
|
|
||||||
});
|
|
||||||
await api.applyConfig(selectedDevice, commands);
|
await api.applyConfig(selectedDevice, commands);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user