diff --git a/Docs/Pics/serverIP.png b/Docs/Pics/serverIP.png new file mode 100644 index 0000000..85077e9 Binary files /dev/null and b/Docs/Pics/serverIP.png differ diff --git a/开发环境准备与运行.MD b/开发环境准备与运行.MD index 14063cb..54a7cff 100644 --- a/开发环境准备与运行.MD +++ b/开发环境准备与运行.MD @@ -68,14 +68,13 @@ yarn config set disturl https://npm.taobao.org/dist --global 3. 通过命令 yarn install或者快捷 pre下载依赖,点击serve 启动项目 ![KY KMS](./Docs/Pics/serv.png) 4. 配置后台接口 -修改接口地址 .env.development: - +找到文件.env.development,把Your_IP替换成你的后端服务ip ``` NODE_ENV=development -VUE_APP_API_BASE_URL=http://localhost:8080/km +VUE_APP_API_BASE_URL=http://Your_IP:8080/km ``` - +![KY KMS](./Docs/Pics/serverIP.png) 5. 点击serve 启动项目,看到如下日志 则启动成功 ![KY KMS](./Docs/Pics/web_success.png) 6. 通过 http://localhost:3000 访问前端项目,默认账号密码: admin/123456 \ No newline at end of file