[Dashboard] 逻辑问题 - 数据加载失败无提示 & 静态数据 #6
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
Dashboard 前端页面
Index.vue存在以下逻辑问题:1. 数据加载失败无用户提示
位置:
frontend/src/views/Dashboard/Index.vue:307-309数据加载失败时只打印 console,无用户提示,用户体验差。
2. prisonerId 为空时无提示
位置:
frontend/src/views/Dashboard/Index.vue:324-327当 URL 无 prisonerId 参数时,页面空白且无任何提示。
3. 底部统计卡片使用静态值
位置:
frontend/src/views/Dashboard/Index.vue:53-68底部四个统计卡片(位置、人员、警力、车辆)使用静态硬编码值"108",应从接口获取真实数据。
4. res 为空时无处理
位置:
frontend/src/views/Dashboard/Index.vue:217返回空数据时应清空页面数据或显示占位,而非静默返回。
修复建议
影响范围
修复优先级
P0 - 立即修复
相关信息
frontend/src/views/Dashboard/Index.vue