MianyVue/package.json
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

34 lines
909 B
JSON

{
"name": "miany-vue",
"version": "0.0.0",
"private": true,
"type": "module",
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"scripts": {
"dev": "vite --config config/vite.config.js",
"build": "vite build --config config/vite.config.js",
"preview": "vite preview --config config/vite.config.js",
"lint": "eslint . --config config/eslint.config.js --fix",
"format": "prettier --config config/.prettierrc.json --write src/"
},
"dependencies": {
"element-plus": "^2.11.2",
"pinia": "^3.0.3",
"vue": "^3.5.18",
"vue-router": "^4.5.1"
},
"devDependencies": {
"@eslint/js": "^9.31.0",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/eslint-config-prettier": "^10.2.0",
"eslint": "^9.31.0",
"eslint-plugin-vue": "~10.3.0",
"globals": "^16.3.0",
"prettier": "3.6.2",
"vite": "^7.0.6",
"vite-plugin-vue-devtools": "^8.0.0"
}
}