Go to file
sladro 720a0df4c4 feat: 接入Creo查看模型功能,重构Store职责分离架构
核心功能:
- 扩展creoApi服务:添加getCurrentModel()和openModelFile()方法
- 重构CAD Store:简化为纯状态管理,删除所有假数据
- 实现CadSidebar交互:组件直接调用API,状态由Store管理
- 修复apiClient通知:确保失败时也显示ElNotification

架构改进:
- Store职责分离:只管理连接状态,不执行API调用
- 一次一连接:连接新CAD时自动断开其他连接
- 通知统一化:operationContext自动生成具体操作通知
- 错误直接暴露:不使用try-catch,错误由apiClient统一处理

文档更新:
- 更新API接入流程:添加实战经验和避坑指南
- 记录职责分离原则和关键实现要点

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-16 15:48:49 +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查看模型功能,重构Store职责分离架构 2025-09-16 15:48:49 +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查看模型功能,重构Store职责分离架构 2025-09-16 15:48:49 +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