File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,20 @@ bash docker/dev-app-builder.sh
7676本章节给出快速启动之后,本地快速开发测试前端的方法。
7777
7878### 1. 编译代码
79- 1 . 全量编译前端(1 minutes 10 seconds)
79+
80+ 1 . 构建 ` agent-flow ` ,在项目根目录下,执行以下命令编译:
81+
82+ ``` shell
83+ cd agent-flow
84+ npm install --legacy-peer-deps --force --registry=https://registry.npmmirror.com
85+ npm run build
86+ npm link
87+ cd -
88+ ```
89+
90+ > 首次的话,需要执行一次,后续有修改再增量构建执行即可。
91+
92+ 2 . 全量编译前端(1 minutes 10 seconds)
8093编写代码,在项目根目录下,执行以下命令编译:
8194``` shell
8295cd frontend
@@ -238,7 +251,7 @@ fit debug
238251
239252**修改代理文件**
240253
241- 修改 `app-platform/ frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
254+ 修改 `frontend` 目录下的 `proxy.config.json` 文件,可以修改需要访问的后端地址。如本地后端地址是 `http://127.0.0.1:8080` 。可以按照如下示例配置:
242255
243256```json
244257{
@@ -253,10 +266,24 @@ fit debug
253266}
254267```
255268
269+ ** 前置准备**
270+
271+ 构建 ` agent-flow ` :
272+
273+ ``` bash
274+ cd agent-flow
275+
276+ npm install
277+ npm run build
278+ npm link
279+
280+ cd -
281+ ```
282+
256283** 依赖安装**
257284
258285```
259- cd app-platform/ frontend/
286+ cd frontend/
260287npm install
261288```
262289
You can’t perform that action at this time.
0 commit comments