Explorar o código

删除模拟数据

CzRger hai 5 horas
pai
achega
1930c3d8c1
Modificáronse 1 ficheiros con 0 adicións e 25 borrados
  1. 0 25
      web/app/components/workflow/hooks/use-workflow.ts

+ 0 - 25
web/app/components/workflow/hooks/use-workflow.ts

@@ -537,31 +537,6 @@ export const useWorkflowInit = () => {
   const handleFetchPreloadData = useCallback(async () => {
     try {
       const nodesDefaultConfigsData = await fetchNodesDefaultConfigs(`/apps/${appDetail?.id}/workflows/default-workflow-block-configs`)
-      nodesDefaultConfigsData.push({
-        type: 'intent-recon-train',
-        config: {
-          method: 'get',
-          authorization: {
-            type: 'no-auth',
-          },
-          body: {
-            type: 'none',
-          },
-          timeout: {
-            connect: 10,
-            read: 60,
-            write: 20,
-            max_connect_timeout: 10,
-            max_read_timeout: 60,
-            max_write_timeout: 20,
-          },
-        },
-        retry_config: {
-          max_retries: 3,
-          retry_interval: 2,
-          retry_enabled: true,
-        },
-      })
       const publishedWorkflow = await fetchPublishedWorkflow(`/apps/${appDetail?.id}/workflows/publish`)
       workflowStore.setState({
         nodesDefaultConfigs: nodesDefaultConfigsData.reduce((acc, block) => {