feat: 初始化项目结构并添加基础配置

添加前后端基础项目结构,包括.gitignore、package.json等配置文件
实现前端基础功能模块,包括路由、状态管理、API请求封装等
添加前端UI组件库和样式体系
配置开发环境Mock系统和构建工具链
This commit is contained in:
2026-03-18 14:03:35 +08:00
parent fc53f5620e
commit 9a387f3eec
504 changed files with 80629 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# 已知陷阱与迁移雷区Pitfalls
- **生产环境禁调试**`src/App.vue` 使用 `disable-devtool`,可能影响某些测试/调试环境。
- **生产环境默认 Mock**`src/main.ts` 中存在“生产启用 mockXHR”的逻辑做真实项目发布时要确认策略。
- **配置入口**`vue.config.js` 通过 `require('./src/config')` 读取配置;`src/config/index.js` 会聚合导出多个子配置。
- **自动插件加载**`library/index.ts``require.context('./plugins', true, /\\.ts$/)` 全量加载;抽取模块时容易带入不需要依赖。
> 对应的约束与处理建议:见 [openspec-lite/project.yaml](openspec-lite/project.yaml)。