From 724375c884878cf27d378c259f77b6f7a78f036a Mon Sep 17 00:00:00 2001 From: Nexus Agent Date: Fri, 12 Jun 2026 01:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(push):=20=E7=A7=BB=E9=99=A4=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=A4=8D=E5=88=B6=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 名称点击恢复为与卡片/行一致的勾选行为。 Co-authored-by: Cursor --- .../audit/2026-06-12-push-remove-name-copy.md | 33 +++++++++++++++++++ .../2026-06-12-push-remove-name-copy.md | 29 ++++++++++++++++ .../src/components/push/PushServerGrid.vue | 31 ++--------------- 3 files changed, 65 insertions(+), 28 deletions(-) create mode 100644 docs/audit/2026-06-12-push-remove-name-copy.md create mode 100644 docs/changelog/2026-06-12-push-remove-name-copy.md diff --git a/docs/audit/2026-06-12-push-remove-name-copy.md b/docs/audit/2026-06-12-push-remove-name-copy.md new file mode 100644 index 00000000..2b6f4ccf --- /dev/null +++ b/docs/audit/2026-06-12-push-remove-name-copy.md @@ -0,0 +1,33 @@ +# 审计 — 推送页移除点击复制名称 + +**Changelog**: `docs/changelog/2026-06-12-push-remove-name-copy.md` + +## 范围(文件清单) + +| 文件 | 变更 | +|------|------| +| `frontend/src/components/push/PushServerGrid.vue` | 移除名称点击复制 | + +## Step 3 规则扫描 + +| H | 规则 | 结论 | +|---|------|------| +| H1 | 安全 | PASS — 无新 API | +| H2 | 无静默吞错 | PASS | +| H3 | 无新密钥 | PASS | +| H4 | CUD | N/A | + +## Closure + +| H | 判定 | 依据 | +|---|------|------| +| H1–H4 | PASS | 纯前端交互回退 | + +## DoD + +- [x] type-check +- [ ] 生产 `#/push` 验证 + +## 验证 + +点击名称仅勾选服务器,无复制 toast。 diff --git a/docs/changelog/2026-06-12-push-remove-name-copy.md b/docs/changelog/2026-06-12-push-remove-name-copy.md new file mode 100644 index 00000000..5d2a0c6f --- /dev/null +++ b/docs/changelog/2026-06-12-push-remove-name-copy.md @@ -0,0 +1,29 @@ +# 推送页移除点击复制名称 + +**日期**:2026-06-12 + +## 动机 + +用户不需要点击服务器名称复制到剪贴板;点击应仅用于勾选服务器。 + +## 变更 + +- 移除卡片/列表视图中名称的 `@click.stop` 与剪贴板写入 +- 移除 `push-server-copy-name` 样式(copy 光标、虚线下划线) +- 保留悬停 `title` 展示完整名称(卡片含域名) + +## 涉及文件 + +- `frontend/src/components/push/PushServerGrid.vue` + +## 验证 + +```bash +cd frontend && npm run type-check +``` + +推送页:点击名称与卡片其他区域一样切换勾选;无复制 toast。 + +## 迁移 + +无。仅前端构建部署。 diff --git a/frontend/src/components/push/PushServerGrid.vue b/frontend/src/components/push/PushServerGrid.vue index 38548d2e..e1addbf2 100644 --- a/frontend/src/components/push/PushServerGrid.vue +++ b/frontend/src/components/push/PushServerGrid.vue @@ -78,9 +78,8 @@
mdi-circle {{ s.name }}
mdi-circle - {{ s.name }} + {{ s.name }} {{ s.domain || '—' }} @@ -177,7 +172,6 @@