diff --git a/apps/web/components/bug/BugDetailDrawer.tsx b/apps/web/components/bug/BugDetailDrawer.tsx index b87676b..67bbd20 100644 --- a/apps/web/components/bug/BugDetailDrawer.tsx +++ b/apps/web/components/bug/BugDetailDrawer.tsx @@ -103,7 +103,7 @@ export function BugDetailDrawer({ bugId, onClose }: Props) { {bug.priority} - {nextStatuses.length > 0 && !showResolutionInput && ( + {nextStatuses.length > 0 && !showResolutionInput && operator === bug.assigneeId && (
{nextStatuses.map((s) => ( @@ -118,6 +118,9 @@ export function BugDetailDrawer({ bugId, onClose }: Props) { )}
)} + {nextStatuses.length > 0 && !showResolutionInput && operator !== bug.assigneeId && ( +
当前修复人为 {bug.assigneeId},仅修复人可操作
+ )} {showResolutionInput && (
@@ -209,8 +212,11 @@ export function BugDetailDrawer({ bugId, onClose }: Props) { {/* Lightbox */} {lightboxSrc && ( -
setLightboxSrc(null)}> - 大图预览 +
{ e.stopPropagation(); setLightboxSrc(null); }}> + 大图预览 e.stopPropagation()} /> +
)}