✨ 新增功能: - 统一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> |
||
|---|---|---|
| .claude | ||
| .vscode | ||
| config | ||
| docs | ||
| public | ||
| src | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| CLAUDE.md | ||
| index.html | ||
| jsconfig.json | ||
| package-lock.json | ||
| package.json | ||
.
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
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