 hughhuangandClaude Sonnet 4.5
|
311f09fb0c
|
重构前端 UI 并修复关键问题
## 主要变更
### 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>
|
2026-02-06 15:57:21 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
830a17bf46
|
初始化项目结构和基础模块
完成内容:
- 创建前后端项目目录结构
- 初始化 Node.js + TypeScript 后端项目 (Fastify)
- 初始化 Vue 3 + TypeScript 前端项目 (Vite)
- 配置 Prisma ORM 和 MySQL 数据库
- 创建数据库 Schema 和种子数据
- 实现后端基础模块 (配置、日志、错误处理、验证)
- 创建基础服务类 (BaseService)
- 配置 Git 仓库和忽略文件
技术栈:
- 后端:Fastify + Prisma + MySQL + Winston
- 前端:Vue 3 + TypeScript + Element Plus + Pinia
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-03 12:11:57 +08:00 |
|