fix: 修复开发环境实时连接握手失败

- 开发代理转发线上接口时,WebSocket 握手补 changeOrigin 与 Origin 改写
- 实时连接握手连续失败两次后停止重连
- 版本号升至 4.11.1
This commit is contained in:
Ray.Hao
2026-10-30 17:39:50 +08:00
parent f443eb6bbe
commit 1383b58e80
8 changed files with 83 additions and 154 deletions

View File

@@ -8,9 +8,8 @@ VITE_APP_TITLE=vue3-element-admin
VITE_API_BASE=/dev-api
# 接口地址(开发代理转发目标,默认走线上)
# API_PROXY_TARGET=https://www.youlai.tech # 线上
API_PROXY_TARGET=http://localhost:8000 # 本地
# API_PROXY_TARGET=https://api.youlai.tech/v2 # 多租户线上
API_PROXY_TARGET=https://www.youlai.tech # 线上
# API_PROXY_TARGET=http://localhost:8000 # 本地
# Mock 开关
VITE_MOCK_ENABLED=false
@@ -21,5 +20,5 @@ VITE_TENANT_ENABLED=false
# AI 开关
VITE_AI_ENABLED=false
# OIDC 登录入口,后端需启用相应配置
# 统一认证登录开关
VITE_OIDC_ENABLED=false