Go to file
sladro 644a826fa1 feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统
 新增功能:
- 统一API封装层(apiClient.js):日志记录、错误处理、后处理钩子
- Creo连接API服务(creoApi.js):真实连接测试功能
- Element Plus通知系统:操作成功/失败右上角通知
- 配置化通知参数:位置、时长、标题统一管理

🔧 技术改进:
- 解决CORS问题:移除自定义请求头
- 消除代码冗余:简化错误处理,避免双重try-catch
- 遵循MVP原则:只实现核心连接功能,无过度工程
- API接入流程文档:标准化后续CAD软件接入

📁 新增文件:
- src/services/apiClient.js - 统一API客户端
- src/services/creoApi.js - Creo API服务

🛠️ 修改文件:
- src/stores/cad.js - 集成真实Creo连接
- src/config/cad.js - 新增通知配置,移除CORS问题请求头
- src/main.js - 集成Element Plus
- package.json - 新增Element Plus依赖
- CLAUDE.md - 更新API接入和日志系统扩展说明

🎯 严格遵循编码规范:核心需求优先、杜绝冗余、统一配置、API封装、日志系统

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 15:03:41 +08:00
.claude feat: 实现专业的登录后首页内容设计 2025-09-16 13:50:06 +08:00
.vscode initial commit 2025-09-15 16:17:05 +08:00
config Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00
docs Fix CAD configuration and restore to 6 software 2025-09-16 10:52:20 +08:00
public Add CSS theme system 2025-09-15 17:38:13 +08:00
src feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +08:00
.editorconfig initial commit 2025-09-15 16:17:05 +08:00
.gitattributes initial commit 2025-09-15 16:17:05 +08:00
.gitignore initial commit 2025-09-15 16:17:05 +08:00
CLAUDE.md feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +08:00
index.html Add CSS theme system 2025-09-15 17:38:13 +08:00
jsconfig.json initial commit 2025-09-15 16:17:05 +08:00
package-lock.json feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +08:00
package.json feat: 实现Creo连接接口MVP版本,集成统一API封装和通知系统 2025-09-16 15:03:41 +08:00

.

This template should help get you started developing with Vue 3 in Vite.

VSCode + Volar (and disable Vetur).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint