Skip to content

fix(enterprise): 支持企业登录地址的部署子路径 - #216

Merged
Fairy-happy merged 1 commit into
V1.3.2from
fix/enterprise-server-base-path
Dec 2, 2026
Merged

Fairy-happy merged 1 commit into
V1.3.2from
fix/enterprise-server-base-path

Conversation

@yaojin3616

@yaojin3616 yaojin3616 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

问题与改动

企业登录地址原来仅允许 origin,无法连接部署在 https://example.com/team/bisheng 的企业平台。即使移除校验,根相对 API、授权页和聊天路由仍会丢失前缀。

  • 允许配置部署子路径并统一去除末尾斜线,保留 HTTP 确认及账号密码、query、fragment 检查。
  • 统一平台 URL 解析,授权页面、Desktop/Web 请求、市场下载和手机 bind/attach/unbind 保留部署前缀;拒绝跨源及跳出配置路径的请求。
  • 桌面聊天保留完整 base,将导航、IPC、主题及 landing 脚本中的业务路径转换为相对于部署根的路径,保持根路径部署行为。
  • 增加真实 HTTP 路径、授权边界、深链接及带前缀聊天回归,并补充反向代理部署说明。

该 PR 从干净 main 隔离,仅包含子路径支持;未包含原工作区的应用 Token 缓存和平台会话协议迁移。

验证

  • 隔离分支相关 9 个测试文件、202 项测试通过,含原有 127 项聊天回归。
  • npm run typecheck、git diff --check 通过。
  • 隔离分支 npm run build 通过(darwin/arm64)。
  • GitHub CI 的 Downstream Boundary Gatekeeper / check-boundary 已通过。本地 npm run verify:boundary 因缺少 upstream/V0.14.1 受阻;尝试获取该引用时上游报告 ref 不存在,未使用其他基准绕过。
  • 原工作区全量回归未全绿,包含 Electron 沙箱、Office 环境及原有断言失败;不声明全量通过。Web 打包要求 Node 24.15.0,当前为 24.21.0,未通过。
  • 尚未进行安装包中的真实企业子路径部署验收,服务端页面、路由和资源须按相同前缀部署。

@Fairy-happy
Fairy-happy changed the base branch from main to V1.3.2 December 2, 2026 11:22
@Fairy-happy
Fairy-happy merged commit f483839 into V1.3.2 Dec 2, 2026
2 checks passed
@Fairy-happy
Fairy-happy deleted the fix/enterprise-server-base-path branch December 2, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants