修复中控

This commit is contained in:
dekun
2026-05-25 08:02:06 +08:00
parent e89708726f
commit 5f4f33cc10
7 changed files with 154 additions and 54 deletions
+8 -1
View File
@@ -198,6 +198,11 @@
async function loadMonitorBoard() {
const box = document.getElementById("monitor-grid");
const showLoading = !lastMonitorRows.length;
if (showLoading && box) {
box.innerHTML =
'<div class="board-loading"><span class="board-loading-spin" aria-hidden="true"></span>正在聚合四所数据…</div>';
}
try {
const r = await apiFetch("/api/monitor/board");
const data = await r.json();
@@ -1125,8 +1130,10 @@
initAuth().then((ok) => {
if (!ok) return;
loadSettings().catch(() => {});
setActiveNav();
if (currentPage() === "settings") {
loadSettings().catch(() => {});
}
window.addEventListener("popstate", setActiveNav);
});
})();