feat(history): 添加首页历史项目展示组件

- 新增 HistoryDatabase.vue 组件,实现扇形堆叠到网格展开的动画效果
- 后端 simulation.py 添加历史模拟数据 API 支持
- 修复 SimulationManager 过滤隐藏文件问题
- 前端 simulation.js 添加获取历史模拟数据的 API 方法
- Home.vue 集成历史项目展示组件
- 实现正方形网格背景装饰效果
This commit is contained in:
666ghj
2025-12-31 17:54:39 +08:00
parent 8b80603325
commit e6da45ee63
5 changed files with 791 additions and 0 deletions

View File

@@ -176,3 +176,12 @@ export const interviewAgents = (data) => {
return requestWithRetry(() => service.post('/api/simulation/interview/batch', data), 3, 1000)
}
/**
* 获取历史模拟列表(带项目详情)
* 用于首页历史项目展示
* @param {number} limit - 返回数量限制
*/
export const getSimulationHistory = (limit = 20) => {
return service.get('/api/simulation/history', { params: { limit } })
}