main: 增加全局暗黑模式支持及 Markdown 渲染功能

- 实现暗黑模式切换逻辑,支持系统主题适配
- 优化全局样式,添加动态主题变量及暗黑样式
- 引入 `markdown-it` 和 `mermaid`,支持 Markdown 内容及流程图渲染
- 更新 ChatView 测试用例,验证 Markdown 和 Mermaid 渲染效果
- 修改 package.json,增加新依赖
This commit is contained in:
2025-12-22 12:37:59 +08:00
parent 9b48ff3e3b
commit 9280fbe762
13 changed files with 1846 additions and 165 deletions

View File

@@ -12,6 +12,8 @@
"dependencies": {
"axios": "^1.13.2",
"element-plus": "^2.12.0",
"markdown-it": "^14.1.0",
"mermaid": "^11.12.2",
"vue": "^3.5.24",
"vue-router": "^4.6.4"
},