[fix]:[FL-61][文件管理页面不要展示索引同步时间]

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-09 10:42:36 +08:00
parent 34fc2d15b7
commit c34edec445
2 changed files with 22 additions and 10 deletions
+22
View File
@@ -59,3 +59,25 @@
- 风险与关注点:
- 本次修复聚焦前端静态资源路径,不涉及后端接口、数据库或权限逻辑。
- 若后续新增 Cesium 页面,必须继续复用 `withBasePath("/cesium")`,不能再硬编码根路径。
## Work Log - 文件管理页移除索引同步时间列(2026-06-09)
- 背景:
- Issue `FL-61` 要求文件管理页面不再展示“索引同步时间”列。
- 代码检索确认该展示仅存在于 `web/src/app/admin/files/page.tsx` 的表格列定义中,未发现额外前端展示点。
- 本次处理:
- `web/src/app/admin/files/page.tsx`
- 从文件列表表格列定义中移除“索引同步时间”列。
- 保持接口请求、返回字段与前端类型不变,仅调整页面展示。
- 验证:
- 基线:
- `npm ci --cache /tmp/npm-cache` 成功补齐前端依赖。
- `npm --workspace web exec eslint src/app/admin/files/page.tsx --max-warnings=0` -> 通过。
- `npm run lint:web` 当前因仓库既有问题失败,主要包含 `web/public/cesium/**` 生成资源与 `web/src/app/admin/syslog/page.tsx` 的现存 lint error,和本次改动无关。
- 修改后:
- `npm --workspace web exec eslint src/app/admin/files/page.tsx --max-warnings=0` -> 通过。
- 风险与关注点:
- 本次变更仅影响文件管理页列表展示,不涉及后端索引同步逻辑,也不影响其它复用该接口的页面读取 `synced_at` 字段。
-10
View File
@@ -680,16 +680,6 @@ export default function AdminFilesPage() {
</Typography.Text>
),
},
{
title: "索引同步时间",
key: "synced_at",
width: 220,
render: (_value, item) => (
<Typography.Text type="secondary" className="text-xs">
{formatDate(item.synced_at)}
</Typography.Text>
),
},
{
title: "操作",
key: "actions",