fix(web): 工单详情不提供删除,e2e 两个用户昵称不再撞号
CI / backend (push) Canceled after 0s

- 工单删了原任务就永远解不开,正确出口是'取消';删除按钮只留任务态
- e2e 里 A/B 原来共用后四位,昵称都变'用户XXXX',截图看着像同一个人
This commit is contained in:
dadao
2026-10-28 13:24:29 +08:00
parent 600131dcf5
commit 3471b07ac1
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -286,9 +286,12 @@ export function TaskDetail({
{STATUS_LABEL[item.status]} · 版本 {item.version}
</span>
<div className="flex gap-2">
<button className="btn-ghost px-2 py-1 text-xs text-red-600" onClick={() => void remove()}>
删除
</button>
{/* 工单不提供删除:它该走"取消",否则原任务永远解不开 */}
{item.kind !== "ticket" && (
<button className="btn-ghost px-2 py-1 text-xs text-red-600" onClick={() => void remove()}>
删除
</button>
)}
<button className="btn-ghost px-2 py-1 text-xs" onClick={onClose}>
关闭
</button>