Update xiaoshi-device-balance-button.js

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

View File

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