[fix]:[FL-212][修复高程文件记录页构建类型错误]
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -391,3 +391,21 @@
|
||||
|
||||
- 风险与关注点:
|
||||
- 改动仅影响系统参数页前端交互组织方式,不改变后端接口字段、权限码或参数状态语义。
|
||||
|
||||
# Work Log - 高程文件记录页构建修复(FL-212)
|
||||
|
||||
- 背景:
|
||||
- CI 在 `web/src/app/admin/elevation-records/page.tsx` TypeScript 阶段失败,原因是页面仍按旧接口读取 `useAuth().api`。
|
||||
|
||||
- 本次处理:
|
||||
- 高程文件记录页请求链路改为使用当前 `AuthContextValue` 暴露的 `fetchWithAuth`。
|
||||
- 将高程记录、线路列表、上传、删除、分析、地形生成、回填和预览请求统一对齐 `/api/v1/...` 路径。
|
||||
- 补齐页面内响应类型、错误处理 helper,并修正同页残留的 AntD `Card` / `Select.Option` / Cesium 预览 props 类型问题。
|
||||
|
||||
- 验证:
|
||||
- 基线:`npm run build:web` 复现失败,错误为 `Property 'api' does not exist on type 'AuthContextValue'`。
|
||||
- 修改后:`npm --workspace web exec eslint src/app/admin/elevation-records/page.tsx --max-warnings=0` 通过。
|
||||
- 修改后:`npm run build:web` 通过,仍仅输出既有 multiple lockfiles 与 middleware/proxy 迁移提示。
|
||||
|
||||
- 风险与关注点:
|
||||
- 改动仅影响 `/admin/elevation-records` 前端请求与类型适配,不改变后端接口字段、权限码或数据模型。
|
||||
|
||||
Reference in New Issue
Block a user