更新后刷新配置到设备
This commit is contained in:
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user