docs(g4): clipboard HTTP-context fix record
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -126,6 +126,19 @@
|
||||
处理),并把补丁行正式化(或钉版本后确认无需补丁)。
|
||||
- 中途回滚一次(admin-eebf3b3 web)恢复服务后再上补丁版——停机窗口约 4 分钟。
|
||||
|
||||
## 4.9 复制按钮 HTTP 上下文修复(2026-09-23)
|
||||
|
||||
- 现象:后台 4 处「复制」按钮(公开令牌/分享链接/嵌入代码/重置密码)点击无效。
|
||||
根因:`navigator.clipboard` 仅安全上下文(HTTPS/localhost)可用,测试入口
|
||||
`http://IP:32005` 下为 undefined → 抛 TypeError 且无任何提示。
|
||||
- 修复(aaea76b):统一 `apps/admin/src/utils/clipboard.ts` `copyText`——
|
||||
clipboard API 优先,失败/缺失降级隐藏 textarea + `execCommand('copy')`;
|
||||
4 调用点替换 + 失败 toast。vitest 4 用例(API 路径/抛错降级/undefined 降级/
|
||||
全失败 false)。**长期正解**:上正式域名 + HTTPS 后 clipboard API 原生可用
|
||||
(降级路径无害保留)。
|
||||
- 本机 Hub 已恢复,回归本地标准构建部署(web `admin-aaea76b-20260923`,
|
||||
healthy;本地缓存 nginx 基础镜像无 §4.8 卡死问题)。
|
||||
|
||||
## 5 残留与登记偏差
|
||||
|
||||
- **embed.e2e-spec 失败(既有,非本分支)**:API settings 响应含 UI-04 线新增
|
||||
|
||||
Reference in New Issue
Block a user