Files
ecom-dmb/apps/web/README.md
T
2026-09-16 22:43:21 +08:00

61 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ecom-dmb-frontend
电商 DMB 前端(Vben Admin 5.5.9)
## 技术栈
- Vue 3 + TypeScript
- Vben Admin 5.5.9(monorepo)
- Ant Design Vue 组件库
- Tailwind CSS 样式
- ECharts 图表
- Vite 6 构建
## 快速启动
```bash
cd ecom-dmb-frontend
pnpm install
pnpm run dev:antd
```
访问:http://localhost:5666
## 构建生产版本
```bash
pnpm run build
```
## 项目结构
```
ecom-dmb-frontend/apps/
├── web-antd/ # 主应用
│ └── src/
│ ├── api/ # API 接口(按模块划分)
│ │ ├── ecommerce/ # 电商模块 API
│ │ ├── organization/
│ │ ├── media/
│ │ └── system/
│ ├── views/
│ │ ├── dashboard/ # Dashboard 页面
│ │ ├── ecommerce/ # 电商页面
│ │ └── ...
│ └── utils/ # 工具函数
└── backend-mock/ # Mock 服务
```
## 样式规范
- 全局使用 **Tailwind CSS** 类名
- 禁止在 Vue 文件中混用普通 CSS(保证一致性)
- 使用 `@vben/common-ui` 的 `Page` 组件做页面包裹
- 响应式布局使用 `grid` + `flex`
## 新增页面流程
1. 在 `views/` 下创建页面组件
2. 在 `api/` 下定义对应的 API 函数
3. 在后端菜单管理中添加路由并分配权限