From 3b8714c93ca3fcb0349a61f969e87e174cf4146a Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Sun, 30 Nov 2025 11:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=E6=97=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA"=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE"=E7=9A=84?= =?UTF-8?q?=E9=97=AA=E7=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 当adminTab为monitor时,healthCheck和systemLogs的loading初始值设为true - 这样在数据加载完成前显示"加载中"而不是"没有数据" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index dc2c672..b31e50d 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -165,7 +165,7 @@ createApp({ // 健康检测 healthCheck: { - loading: false, + loading: localStorage.getItem('adminTab') === 'monitor', // 如果在监控页刷新,初始显示加载中 lastCheck: null, overallStatus: null, // healthy, warning, critical summary: { total: 0, pass: 0, warning: 0, fail: 0, info: 0 }, @@ -174,7 +174,7 @@ createApp({ // 系统日志 systemLogs: { - loading: false, + loading: localStorage.getItem('adminTab') === 'monitor', // 如果在监控页刷新,初始显示加载中 logs: [], total: 0, page: 1,