86bc737f4c
清除 keep-alive 下 loading 卡死;改用 v-card-text 与表格内置 loading,并加 30s 自动刷新。 Co-authored-by: Cursor <cursoragent@cursor.com>
913 B
913 B
2026-06-08 — 仪表盘服务器列表不显示修复
摘要
修复仪表盘「服务器列表」区域空白或一直骨架屏的问题。
动机
keep-alive 切换页面后 loading 可能卡在 true,而静默刷新不会清除;v-if 骨架屏与表格互斥导致表格永不渲染。另:v-card 的 #text 插槽结构改为显式 v-card-title + v-card-text。
变更
useServerPagination.ts—finally始终loading=false(含 silent 刷新)DashboardPage.vue— 去掉 skeleton/table 的v-if/v-else;卡片结构修正;搜索绑定onSearch;30s 自动刷新列表
涉及文件
frontend/src/composables/useServerPagination.tsfrontend/src/pages/DashboardPage.vue
迁移 / 重启
无;前端构建部署即可。
验证
打开 #/ 仪表盘 → 服务器列表表格应显示数据;切换侧栏再回仪表盘仍可见。