This commit is contained in:
喆OvO
2026-08-12 09:50:37 +08:00
parent cc43873ad2
commit 15b54f204e
10 changed files with 360 additions and 41 deletions
+6
View File
@@ -288,6 +288,12 @@
showAlarmOverlay(msg.data); // reuse alarm overlay UI
switchPanel('countdown');
}
} else if (msg.type === 'timezone_changed') {
// 控制端改了账户时区 → 立即重拉状态(state.timezone 更新后时钟/闹钟兜底随之生效)
fetchState();
} else if (msg.type === 'db_changed') {
// 超大事件(NOTIFY 放不下)→ 从数据库重拉完整状态
fetchState();
} else if (msg.type === 'display_mode_changed' || msg.type === 'force_refresh') {
location.reload();
} else if (msg.type === 'theme_changed') {