From 740bac1c63b7810d6d09b00347a9c21cfc8663ff Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Sat, 20 Dec 2025 01:48:48 +0800 Subject: [PATCH] Update xiaoshi-device-todo-button.js --- xiaoshi-device-todo-button.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/xiaoshi-device-todo-button.js b/xiaoshi-device-todo-button.js index 989927a..9efd2f0 100644 --- a/xiaoshi-device-todo-button.js +++ b/xiaoshi-device-todo-button.js @@ -1122,19 +1122,13 @@ class XiaoshiTodoButton extends LitElement { super.connectedCallback(); this._loadTodoData(); - - //button新元素 开始 - setTimeout(() => { - this._loadTodoData(); - }, 50); - //button新元素 结束 // 设置主题属性 this.setAttribute('theme', this._evaluateTheme()); // 每300秒刷新一次数据,减少频繁刷新 this._refreshInterval = setInterval(() => { this._loadTodoData(); - }, 300000); + }, 3000); } _evaluateTheme() {