Initial commit

This commit is contained in:
admin
2025-12-09 14:37:41 +08:00
parent b8648c2861
commit 1384bb1d4a
7 changed files with 139 additions and 9 deletions

View File

@@ -51,7 +51,8 @@ ALLOWED_HOSTS = ['*'] # 允许所有域名访问,生产环境建议修改为
```javascript
proxy: {
'/api': {
target: 'http://192.168.5.81:8000', // 目标服务器地址
// 目标服务器地址,优先使用环境变量 PROXY_TARGET默认为 localhost
target: process.env.PROXY_TARGET || 'http://127.0.0.1:8000',
changeOrigin: true
}
}