功能: 完善风电功率方案计算
- 新增计算方案保存与方案二筛选参数 - 支持方案二桨角规则和有效数据导出 - 优化功率曲线绘制和设计功率展示
This commit is contained in:
@@ -24,7 +24,7 @@ wind_power_cal/
|
||||
|
||||
## 快速开始
|
||||
|
||||
### 1. 一键启动(默认监听 :8848)
|
||||
### 1. 一键启动(默认监听 :8080)
|
||||
|
||||
```bash
|
||||
./run.sh
|
||||
@@ -35,10 +35,10 @@ wind_power_cal/
|
||||
验证:
|
||||
|
||||
```bash
|
||||
curl -s localhost:8848/api/system/health
|
||||
curl -s localhost:8080/api/system/health
|
||||
# {"data":{"status":"ok"},"msg":"success","status":0}
|
||||
|
||||
curl -s localhost:8848/api/system/version
|
||||
curl -s localhost:8080/api/system/version
|
||||
# {"data":{"name":"wind_power_cal","version":"0.1.0"},"msg":"success","status":0}
|
||||
```
|
||||
|
||||
@@ -50,17 +50,17 @@ npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
打开 http://localhost:5173 ,首页通过 Vite 代理 (`/api` → `localhost:8848`) 访问后端接口。
|
||||
打开 http://localhost:5173 ,首页通过 Vite 代理 (`/api` → `localhost:8080`) 访问后端接口。
|
||||
|
||||
### 3. 生产联调
|
||||
|
||||
统一使用根目录 `./run.sh`。脚本会构建前端并把 `dist/` 同步到 `runtime/wind_power/web/`,由后端托管 SPA;访问 http://localhost:8848/ 直接返回前端页面。
|
||||
统一使用根目录 `./run.sh`。脚本会构建前端并把 `dist/` 同步到 `runtime/wind_power/web/`,由后端托管 SPA;访问 http://localhost:8080/ 直接返回前端页面。
|
||||
|
||||
## 端口
|
||||
|
||||
| 服务 | 端口 |
|
||||
| ------ | ----- |
|
||||
| 后端 | 8848 |
|
||||
| 后端 | 8080 |
|
||||
| 前端 dev | 5173 |
|
||||
|
||||
## 说明
|
||||
|
||||
Reference in New Issue
Block a user