feat(biji): 添加最近更新笔记功能

- 在前端添加 getRecentFiles API 接口
- 在后端添加 getRecentFiles 接口和相关服务方法
- 实现最近更新笔记的获取和展示
- 优化首页初始化逻辑,加载最近更新笔记
This commit is contained in:
2025-07-31 16:47:44 +08:00
parent 8bd811319e
commit f72d75e349
7 changed files with 64 additions and 5 deletions

View File

@@ -89,6 +89,9 @@ export const updateMarkdownTitle = (id, newTitle) => {
});
}
// 获取最近更新的笔记
export const getRecentFiles = () => axiosApi.get('/api/markdown/recent');