更新后刷新配置到设备

This commit is contained in:
allen2fuc
2026-05-12 11:14:27 +08:00
parent ae4ce8bb07
commit 2b1c69460f
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -218,6 +218,10 @@ export class LuxsinAPI {
return parseInt(text.trim(), 10);
}
async refreshState(): Promise<void> {
await fetch(`${this.baseUrl}/msgAdd`);
}
async setSetting(params: Record<string, string | number>): Promise<void> {
const query = Object.entries(params)
.map(([k, v]) => `${k}=${v}`)