更新地址和端口

This commit is contained in:
2025-12-15 14:54:41 +08:00
parent 020152c3d5
commit 763de9f39a
3 changed files with 6 additions and 6 deletions

View File

@@ -109,14 +109,14 @@
```bash
# 示例:开发环境
VITE_API_BASE_URL=http://192.168.124.40:8022
VITE_API_BASE_URL=http://localhost:8000
```
约定:
- **只写协议 + 域名/IP + 端口**,不要包含 `/api`
- ✅ `http://192.168.124.40:8022`
- ❌ `http://192.168.124.40:8022/api`
- ✅ `http://localhost:8000`
- ❌ `http://localhost:8000/api`
- 开发与生产可指向不同后端,只要保证同样的接口路径即可。
2. **Vite 代理 & URL 工具**(已接好,通常不用改)