Update data refresh interval to 3 seconds

Changed the data refresh interval from 300 seconds to 3 seconds.
This commit is contained in:
xiaoshi
2025-12-20 01:48:21 +08:00
committed by GitHub
parent 128d24328b
commit 85d413baa1

View File

@@ -802,18 +802,11 @@ export class XiaoshiHaInfoButton extends LitElement {
// 设置主题属性
this.setAttribute('theme', this._evaluateTheme());
//button新元素 开始
setTimeout(() => {
this._loadUpdateData();
this._loadOfflineDevices();
}, 50);
//button新元素 结束
// 每300秒刷新一次数据减少频繁刷新
this._refreshInterval = setInterval(() => {
this._loadUpdateData();
this._loadOfflineDevices();
}, 300000);
}, 3000);
}
_evaluateTheme() {