项目启动优化

This commit is contained in:
2026-05-09 17:04:58 +08:00
parent 4315f556c6
commit 8904cc8868
3 changed files with 60 additions and 20 deletions
+13 -1
View File
@@ -1,3 +1,15 @@
# Vue 3 + Vite
# 运行项目使用:npm run dev
# 运行项目使用
先启动后端服务,默认接口地址为 `http://127.0.0.1:18080`。
```sh
npm run dev
```
如果后端端口或地址不同,可以启动前端时覆盖代理目标:
```sh
VITE_API_PROXY_TARGET=http://127.0.0.1:18080 npm run dev
```