feat(update): 增强更新检查功能,展示发布日志和发布时间

- 后端从 GitHub Tags API 改为 Releases API,获取更丰富的发布信息
- 新增 release_notes 和 published_at 字段
- 前端更新对话框展示发布时间和 Markdown 格式的更新日志
- 使用 DOMPurify 对 Markdown 渲染结果进行 XSS 防护
- 简化 GlobalModel 缓存失效逻辑,合并同步/异步调用
This commit is contained in:
fawney19
2026-01-13 20:29:16 +08:00
parent 8c4c5fa394
commit 5374add5d8
5 changed files with 110 additions and 63 deletions

View File

@@ -166,6 +166,8 @@ export interface CheckUpdateResponse {
latest_version: string | null
has_update: boolean
release_url: string | null
release_notes: string | null
published_at: string | null
error: string | null
}