feat: implement gas and delivery admin systems
This commit is contained in:
27
frontend/gas_admin/README.md
Normal file
27
frontend/gas_admin/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 禾气气站管理系统
|
||||
|
||||
基于 Vue 3、Vite、TypeScript、Pinia 和 Arco Design 的气站管理端。开发服务器默认端口为 `5175`。
|
||||
|
||||
## 常用命令
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm dev
|
||||
pnpm type:check
|
||||
pnpm lint
|
||||
pnpm contract:sync
|
||||
pnpm contract:check
|
||||
pnpm build
|
||||
```
|
||||
|
||||
`contract:sync` 从 `backend/api/cmd/cli gas-resource-contract` 生成
|
||||
`src/contracts/gas-resources.json`。受影响的后端路由或资源模式变更后必须重新同步。
|
||||
|
||||
浏览器菜单由后端 `/gas_menu` 按气站账号角色返回;前端本地路由只提供受控页面映射。普通资源复用 `views/shared/ResourcePage.vue`,所有关联提交业务 `identity`。
|
||||
|
||||
## 环境变量
|
||||
|
||||
| 变量 | 说明 |
|
||||
| --- | --- |
|
||||
| `VITE_API_BASE_URL` | 后端 API 地址,默认 `http://localhost:12426/heqi/gas/v1` |
|
||||
| `VITE_ERROR_REPORT_URL` | 可选的前端错误上报地址 |
|
||||
Reference in New Issue
Block a user