diff --git a/components/canvas/nodes/ImageNode.tsx b/components/canvas/nodes/ImageNode.tsx index bbd365f..e68ed61 100644 --- a/components/canvas/nodes/ImageNode.tsx +++ b/components/canvas/nodes/ImageNode.tsx @@ -273,7 +273,6 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) { setTextEditPanelOpen(false); setIsEditingTitle(false); setPromptDialogOpen(false); - setNotePanelOpen(false); } }, [isSelected]); @@ -1814,9 +1813,9 @@ export function ImageNode({ node, isSelected }: ImageNodeProps) { )} {/* 图片备注面板 */} - {isSelected && notePanelOpen && typeof document !== "undefined" && createPortal( + {notePanelOpen && typeof document !== "undefined" && createPortal(