From 99e61e24c482b45d2b71d5d0b4e8535724731776 Mon Sep 17 00:00:00 2001 From: wenyongda Date: Thu, 16 Apr 2026 13:14:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E6=A8=B1=E8=8A=B1=E7=89=B9?= =?UTF-8?q?=E6=95=88=E9=BB=98=E8=AE=A4=E7=8A=B6=E6=80=81=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改默认状态为关闭以优化性能,减少不必要的资源消耗 --- source/js/sakura-toggle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/js/sakura-toggle.js b/source/js/sakura-toggle.js index e25c2a4..1e43596 100644 --- a/source/js/sakura-toggle.js +++ b/source/js/sakura-toggle.js @@ -1,11 +1,11 @@ // 樱花特效切换按钮 - 添加到 rightside 设置区域 const SAKURA_STORAGE_KEY = 'sakura_effect_enabled'; -// 获取保存的状态,默认为 true(显示) +// 获取保存的状态,默认为 false(关闭) function getSakuraState() { const saved = localStorage.getItem(SAKURA_STORAGE_KEY); - // 如果没有保存过,默认显示 - return saved === null ? true : saved === 'true'; + // 如果没有保存过,默认关闭 + return saved === null ? false : saved === 'true'; } // 保存状态到 localStorage