## 主要变更 ### UI 重构(基于 Gemini) - 引入 Tailwind CSS 设计系统,替换原有样式 - 重构所有主要页面组件(Dashboard、AgentChat、Sources 等) - 新增 CommandPalette 和 ToolCallDisplay 组件 - 优化布局和交互体验 ### 关键问题修复 1. 修复 AI 对话页面 TypeError 错误 - 问题:后端 conversations API 返回格式不标准,导致前端访问 res.data 为 undefined - 修复:agent.ts 中使用 `res.data ?? res as any ?? []` 兼容两种响应格式 2. 修复 Tailwind CSS 样式未加载 - 问题:main.ts 中缺少 style.css 导入 - 修复:添加 `import './style.css'` 3. 安装缺失依赖 - 新增 @vueuse/core(MessageItem.vue 使用 useClipboard) - 新增 Tailwind CSS 相关依赖 ### 新增配置 - postcss.config.js - PostCSS 配置 - tailwind.config.js - Tailwind 主题配置 - user.ts store - 用户状态管理 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
41 lines
991 B
JSON
41 lines
991 B
JSON
{
|
|
"name": "frontend",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc -b && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.2",
|
|
"@types/markdown-it": "^14.1.2",
|
|
"@vueuse/core": "^14.2.0",
|
|
"axios": "^1.13.4",
|
|
"clsx": "^2.1.1",
|
|
"echarts": "^6.0.0",
|
|
"element-plus": "^2.13.2",
|
|
"highlight.js": "^11.11.1",
|
|
"lucide-vue-next": "^0.563.0",
|
|
"markdown-it": "^14.1.0",
|
|
"pinia": "^3.0.4",
|
|
"tailwind-merge": "^3.4.0",
|
|
"vue": "^3.5.24",
|
|
"vue-echarts": "^8.0.1",
|
|
"vue-router": "^4.6.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@types/node": "^24.10.9",
|
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
"@vue/tsconfig": "^0.8.1",
|
|
"autoprefixer": "^10.4.24",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "~5.9.3",
|
|
"vite": "^7.2.4",
|
|
"vue-tsc": "^3.1.4"
|
|
}
|
|
}
|