From c564c63ce63feecc2c55c62d8b263cde0d7bb5a1 Mon Sep 17 00:00:00 2001 From: dolphin Date: Thu, 7 Aug 2025 11:39:35 +0800 Subject: [PATCH] fix: import soploading error --- src/frontend/client/src/components/Sop/SOPEditor.tsx | 6 +++--- .../client/src/components/Sop/TaskFlowContent.tsx | 12 ++++++------ src/frontend/client/src/components/Sop/index.tsx | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/frontend/client/src/components/Sop/SOPEditor.tsx b/src/frontend/client/src/components/Sop/SOPEditor.tsx index c8cc229b4..3b2dc212d 100644 --- a/src/frontend/client/src/components/Sop/SOPEditor.tsx +++ b/src/frontend/client/src/components/Sop/SOPEditor.tsx @@ -4,8 +4,6 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import { saveSop, startLinsight } from '~/api/linsight'; import { useLinsightManager, useLinsightSessionManager } from '~/hooks/useLinsightManager'; import { Button, Textarea } from '../ui'; -import CopyButton from './components/CopyButton'; -import { LoadingDots } from './components/sopLoading'; import SopMarkdown from './SopMarkdown'; export const enum SopStatus { @@ -166,7 +164,9 @@ export const SOPEditor = ({ versionId, sopError, onRun }) => { {/* */} - {linsight.status === SopStatus.SopGenerating && !linsight.sop?.trim() && } + {linsight.status === SopStatus.SopGenerating && !linsight.sop?.trim() &&

+ +

}

SOP生成失败:{linsight.sopError}

diff --git a/src/frontend/client/src/components/Sop/TaskFlowContent.tsx b/src/frontend/client/src/components/Sop/TaskFlowContent.tsx index 6cb9003db..c43e9d538 100644 --- a/src/frontend/client/src/components/Sop/TaskFlowContent.tsx +++ b/src/frontend/client/src/components/Sop/TaskFlowContent.tsx @@ -24,7 +24,7 @@ const ToolButtonLink = ({ params, setCurrentDirectFile }) => { const name = params.file_path.split('/').pop(); return , default: `正在使用 ${toolName} 工具` }; @@ -75,6 +71,10 @@ const Tool = ({ data, setCurrentDirectFile }) => { read_text_file: () => , add_text_to_file: () => , replace_file_lines: () => , + web_content_to_markdown_llm: () => , default: () => '', }; @@ -105,7 +105,7 @@ const Tool = ({ data, setCurrentDirectFile }) => { const Icon = iconMap[toolName] || iconMap.default; return ( -
+
{displayName} diff --git a/src/frontend/client/src/components/Sop/index.tsx b/src/frontend/client/src/components/Sop/index.tsx index 2526e4804..14d3f6c7d 100644 --- a/src/frontend/client/src/components/Sop/index.tsx +++ b/src/frontend/client/src/components/Sop/index.tsx @@ -6,7 +6,7 @@ import { useGetLinsightToolList, useGetOrgToolList, useGetPersonalToolList } fro import { useGenerateSop, useLinsightManager } from '~/hooks/useLinsightManager'; import { formatTime } from '~/utils'; import { SopCase } from './case'; -import { LoadingBox } from './components/sopLoading'; +import { LoadingBox } from './components/SopLoading'; import { Header } from './Header'; import { SOPEditor, SopStatus } from './SOPEditor'; import { TaskFlow } from './TaskFlow';