diff --git a/xiaoshi-device-consumables-button.js b/xiaoshi-device-consumables-button.js index 3348358..45eb9f1 100644 --- a/xiaoshi-device-consumables-button.js +++ b/xiaoshi-device-consumables-button.js @@ -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() {