修改api调用方式

This commit is contained in:
Jerry 2025-07-12 00:07:07 +08:00
parent 71243319e4
commit 1776a6bd2c

View File

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