diff --git a/projects/app/src/components/core/chat/components/WholeResponseModal.tsx b/projects/app/src/components/core/chat/components/WholeResponseModal.tsx
index 4c8072d1a..31f11f713 100644
--- a/projects/app/src/components/core/chat/components/WholeResponseModal.tsx
+++ b/projects/app/src/components/core/chat/components/WholeResponseModal.tsx
@@ -170,81 +170,77 @@ export const ResponseBox = React.memo(function ResponseBox({
) : (
- <>
-
- {!isOpenMobileModal && (
-
- {
- setCurrentNodeId(item);
- onOpenMobileModal();
+
+ {!isOpenMobileModal && (
+ {
+ setCurrentNodeId(item);
+ onOpenMobileModal();
+ }}
+ isMobile={true}
+ />
+ )}
+ {isOpenMobileModal && (
+
+
+ {
+ e.stopPropagation();
+ onCloseMobileModal();
}}
- isMobile={true}
+ position={'absolute'}
+ left={2}
+ top={'50%'}
+ transform={'translateY(-50%)'}
+ cursor={'pointer'}
+ _hover={{ color: 'primary.500' }}
+ />
+
+ activeModule.moduleType === template.flowNodeType
+ )?.avatar
+ }
+ w={'1.25rem'}
+ h={'1.25rem'}
+ borderRadius={'sm'}
+ />
+
+
+ {t(activeModule.moduleName as any)}
+
+
+
+
- )}
- {isOpenMobileModal && (
-
-
- {
- e.stopPropagation();
- onCloseMobileModal();
- }}
- position={'absolute'}
- left={2}
- top={'50%'}
- transform={'translateY(-50%)'}
- cursor={'pointer'}
- _hover={{ color: 'primary.500' }}
- />
-
- activeModule.moduleType === template.flowNodeType
- )?.avatar
- }
- w={'1.25rem'}
- h={'1.25rem'}
- borderRadius={'sm'}
- />
-
-
- {t(activeModule.moduleName as any)}
-
-
-
-
-
-
- )}
-
- >
+
+ )}
+
)}
>
);
});
-const WholeResponseContent = ({
+export const WholeResponseContent = ({
activeModule,
hideTabs,
showDetail
diff --git a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/NodeCard.tsx b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/NodeCard.tsx
index 36b5059d0..f1ceefed9 100644
--- a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/NodeCard.tsx
+++ b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/NodeCard.tsx
@@ -25,7 +25,7 @@ import { QuestionOutlineIcon } from '@chakra-ui/icons';
import MyTooltip from '@fastgpt/web/components/common/MyTooltip';
import { useRequest2 } from '@fastgpt/web/hooks/useRequest';
import { useWorkflowUtils } from '../../hooks/useUtils';
-import { ResponseBox } from '@/components/core/chat/components/WholeResponseModal';
+import { WholeResponseContent } from '@/components/core/chat/components/WholeResponseModal';
type Props = FlowNodeItemType & {
children?: React.ReactNode | React.ReactNode[] | string;
@@ -623,9 +623,7 @@ const NodeDebugResponse = React.memo(function NodeDebugResponse({
{debugResult.message}
)}
- {response && (
-
- )}
+ {response && }
)}