- 工单删了原任务就永远解不开,正确出口是'取消';删除按钮只留任务态 - e2e 里 A/B 原来共用后四位,昵称都变'用户XXXX',截图看着像同一个人
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user