diff --git a/README.en.md b/README.en.md index 741cdcd71e63d7e738d192d936ba3161707d9f64..7309a9f6fb91230db1a55844b421e6c6f88b6a7b 100644 --- a/README.en.md +++ b/README.en.md @@ -32,7 +32,7 @@ The previewer does not support previewing web components. Please run it on a rea 2. Run the Vue server code. Open the command line tool in the **HttpServerOfVue** directory of this project, enter **npm install** to install the server dependency package. If the installation is successful, enter **npm run dev** and press **Enter**. If a link is displayed, the server can be started normally. ![](screenshots/device/img.png) 3. Build a LAN environment: When testing this codelab, ensure that the PCs for running the server code and testing are connected to the same LAN. You can enable your personal hotspot on your mobile phone, and then connect both PCs to your mobile phone hotspot for testing. -4. Connect to the server address: Open the command line tool, run the **ipconfig** command to view the local IP address, and copy the local IP address to the **entry/src/main/ets/common/constants/Constants.ets** file. If the H5 server is running, modify the **CLOUD_PATH** variable. If the Vue server is running, modify the **VUE_CLOUD_PATH** variable. Note that only the IP address needs to be replaced. Do not change the port number. After saving the IP address, run the codelab to perform the test. +4. Connect to the server address: Open the command line tool, run the **ipconfig** command to view the local IP address, and copy the local IP address to the **entry/src/main/ets/common/Constants.ets** file. If the H5 server is running, modify the **CLOUD_PATH** variable. If the Vue server is running, modify the **VUE_CLOUD_PATH** variable. Note that only the IP address needs to be replaced. Do not change the port number. After saving the IP address, run the codelab to perform the test. #### Frontend instructions diff --git a/README.md b/README.md index e9a071b18a2024eafd2efc17e63d34028c99624a..aaa2f4c139357ba781a0c12720993c91419f4c3b 100755 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ 2. 运行Vue服务端代码。在本项目的HttpServerOfVue目录下打开命令行工具,输入npm install 安装服务端依赖包,安装成功后输入npm run dev点击回车。看到输出链接,则表示服务端已经可以正常启动了。 ![](screenshots/device/img.png) 3. 构建局域网环境:测试本Codelab时要确保运行服务端代码的电脑和测试机连接的是同一局域网下的网络,您可以用您的手机开一个个人热点,然后将测试机和运行服务端代码的电脑都连接您的手机热点进行测试。 -4. 连接服务器地址:打开命令行工具,输入ipconfig命令查看本地ip,将本地ip地址复制到entry/src/main/ets/common/constants/Constants.ets文件中,如果运行H5服务端,则修改CLOUD_PATH变量,如果运行Vue服务端,则修改VUE_CLOUD_PATH变量。注意只替换ip地址部分,不要修改端口号,保存好ip之后即可运行Codelab进行测试。 +4. 连接服务器地址:打开命令行工具,输入ipconfig命令查看本地ip,将本地ip地址复制到entry/src/main/ets/common/Constants.ets文件中,如果运行H5服务端,则修改CLOUD_PATH变量,如果运行Vue服务端,则修改VUE_CLOUD_PATH变量。注意只替换ip地址部分,不要修改端口号,保存好ip之后即可运行Codelab进行测试。 #### 前端使用说明