Files
template-10556/.workbuddy/memory/2026-04-06.md
赵忠林 fa917639d2 fix(honor): 优化光荣榜列表去重逻辑,防止重复显示
- 列表第一页渲染时根据 articleId 去重,避免重复条目显示
- 翻页追加数据时合并并去重列表,确保展示无重复内容
- 修复因后端数据重复导致的同一条目多次出现问题

feat(config): 新增环境变量配置及配置文件重构

- 新增 config/env.ts 支持开发、测试、生产环境变量配置
- 通过 getEnvConfig 函数动态获取当前环境配置
- config/app.ts 引入环境变量,实现接口地址等配置统一管理
2026-04-06 12:21:06 +08:00

17 lines
801 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-04-06 工作记录
## 首页视频替换
- 文件:`src/pages/index/Video.tsx`
- 旧视频:`https://oss.wsdns.cn/20250722/018be1bd1c8b4cc4a15076ad0578b88d.mp4`
- 新视频(微信传入 7.mp4约 11MB`https://oss.wsdns.cn/20260406/2be0376cac054f2ba86dd35a2bc52e11.mp4`
- 上传方式:通过 `https://server.websoft.top/api/oss/upload` + Header `TenantId: 10556`
---
## 光荣榜列表去重处理
- 问题:`src/honor/list.tsx` 渲染的"2024年立功受奖光荣榜"列表中,"黄富钜"出现了两次(后端数据库重复条目导致)。
- 修复:在 `list.tsx` 的数据赋值逻辑中,第一页和翻页追加时均按 `articleId` 去重,防止同一条目重复展示。
- 建议:根本解决方案是从后端数据库中删除重复的文章记录。