Update xiaoshi-device-consumables-button.js

This commit is contained in:
xiaoshi
2025-12-20 01:47:57 +08:00
committed by GitHub
parent de64a44599
commit 128d24328b

View File

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