From 101a6be9b734ced21712d9dc50ac699620b657ed Mon Sep 17 00:00:00 2001 From: Script Generator Date: Mon, 15 Jun 2026 13:45:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Bug=E8=AF=A6=E6=83=85=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=94=BE=E5=A4=A7=E5=85=B3=E9=97=AD=E4=B8=8D=E5=BD=B1=E5=93=8D?= =?UTF-8?q?=E6=8A=BD=E5=B1=89=20+=20=E4=BB=85=E4=BF=AE=E5=A4=8D=E4=BA=BA?= =?UTF-8?q?=E5=8F=AF=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Lightbox 点击关闭时 stopPropagation,不会冒泡关闭 drawer - 点击背景关闭图片 - 新增右上角 X 关闭按钮 - 点击图片本身不触发关闭 2. 仅当前修复人(assigneeId)可操作 Bug: - 只有当前用户 === bug.assigneeId 时显示状态流转按钮和转交按钮 - 其他人查看时显示提示"仅修复人可操作" Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/components/bug/BugDetailDrawer.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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()} /> +
)}