Browse Source

update README.md

reghao 2 months ago
parent
commit
2129f63604
1 changed files with 3 additions and 16 deletions
  1. 3 16
      README.md

+ 3 - 16
README.md

@@ -4,24 +4,11 @@ ElementUI 的模板框架来自[这个项目](https://github.com/phk422/videopro
 ## 依赖
 ## 依赖
 - os:Linux
 - os:Linux
 - node:v16.19.0
 - node:v16.19.0
+- npm:8.19.3
 
 
 ## 后端接口
 ## 后端接口
-vue.config.js 文件中配置服务接口地址:
-```
-devServer: {
-	port: 8000, // 项目的端口号
-	// 跨域代理配置
-	proxy: {
-		'/api': {
-			target: 'http://localhost:8888', //这里是接口地址,接口地址联系作者获取
-			ws: true,//是否代理websockets
-			changeOrigin: true,   // 设置同源  默认false,是否需要改变原始主机头为目标URL
-			pathRewrite: {
-				'^/api': ''
-			}		
-		}
-	}
-}
+```
+.env.development 和 .env.production 环境文件中分别配置开发环境和生产环境的后端接口
 ```
 ```
 
 
 ## 构建部署
 ## 构建部署