mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-01-13 07:04:59 +00:00
Update xiaoshi-device-consumables-button.js
This commit is contained in:
@@ -1302,16 +1302,10 @@ class XiaoshiConsumablesButton extends LitElement {
|
||||
// 设置主题属性
|
||||
this.setAttribute('theme', this._evaluateTheme());
|
||||
|
||||
//button新元素 开始
|
||||
setTimeout(() => {
|
||||
this._loadOilPriceData();
|
||||
}, 50);
|
||||
//button新元素 结束
|
||||
|
||||
// 每300秒刷新一次数据,减少频繁刷新
|
||||
this._refreshInterval = setInterval(() => {
|
||||
this._loadOilPriceData();
|
||||
}, 300000);
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
_evaluateTheme() {
|
||||
|
||||
Reference in New Issue
Block a user