修改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; 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);
} }
}; };