🐛 修复监控页面刷新时显示"没有数据"的闪烁
- 当adminTab为monitor时,healthCheck和systemLogs的loading初始值设为true - 这样在数据加载完成前显示"加载中"而不是"没有数据" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user