Files
lgp-admin-plus/README.md
年糕崽崽 27135f4ae6 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:19:06 +08:00

68 lines
1.7 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.
# lgp-admin-plus
LGP 管理后台前端Vben Admin 5.7 / `apps/web-antd`)。
两个家具品牌共用一套代码,靠构建模式区分。
| 品牌 | 命令后缀 | AppID | 产出目录 |
|---|---|---|---|
| 佛山铂尔曼 | `brm` | `wx679d36842570cea7` | `apps/web-antd/dist-brm` |
| 维伦家具 | `wl` | `wx57b54060a579c31a` | `apps/web-antd/dist-wl` |
包管理器:**pnpm**(不要用 npm / yarn
## 准备
```bash
pnpm install
```
## 启动(两种)
在仓库根目录执行:
```bash
# 1佛山铂尔曼 —— 读 .env.brm标题 / Logo / 品牌色)
pnpm dev:brm
# 2维伦家具 —— 读 .env.wl
pnpm dev:wl
```
默认开发端口见 `apps/web-antd/vite.config.ts`(当前 **14002**)。
接口代理:`/api` → 本地后端 `http://127.0.0.1:18004/api/`
> 仅调试、不区分品牌时可用 `pnpm dev``development` 模式,默认品牌仍是铂尔曼)。
## 打包(两种)
```bash
# 1佛山铂尔曼 → apps/web-antd/dist-brm并可能产出 zip
pnpm build:brm
# 2维伦家具 → apps/web-antd/dist-wl
pnpm build:wl
```
一次打两个品牌:
```bash
pnpm build:brands
```
两个品牌 **outDir 必须分开**,否则会互相覆盖。上线前按品牌分别回归。
## 环境文件
| 文件 | 用途 |
|---|---|
| `apps/web-antd/.env.brm` | 铂尔曼生产构建 / `dev:brm` |
| `apps/web-antd/.env.wl` | 维伦生产构建 / `dev:wl` |
| `apps/web-antd/.env.development` | 通用本地开发(`pnpm dev` |
品牌相关变量:`VITE_APP_BRAND``VITE_APP_TITLE``VITE_APP_FAVICON``VITE_GLOB_API_URL`
## 后端
配套 API`lgp-admin-plus-api`Laravel 13
库表变更走 `database/sql/<YYYY-MM-DD>/01_名字.sql`,不要新建 PHP Migration。