From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/nodes/_base/hooks/use-node-help-link.ts |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts b/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts
index daad6ff..2ecdf10 100644
--- a/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts
+++ b/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts
@@ -6,9 +6,9 @@
   const language = useGetLanguage()
   const prefixLink = useMemo(() => {
     if (language === 'zh_Hans')
-      return 'https://docs.dify.ai/zh-hans/guides/workflow/node/'
+      return 'https://docs.dify.ai/v/zh-hans/guides/workflow/node/'
 
-    return 'https://docs.dify.ai/en/guides/workflow/node/'
+    return 'https://docs.dify.ai/guides/workflow/node/'
   }, [language])
   const linkMap = useMemo(() => {
     if (language === 'zh_Hans') {
@@ -26,13 +26,12 @@
         [BlockEnum.VariableAggregator]: 'variable-aggregator',
         [BlockEnum.Assigner]: 'variable-assigner',
         [BlockEnum.Iteration]: 'iteration',
-        [BlockEnum.Loop]: 'loop',
+        [BlockEnum.IterationStart]: 'iteration',
         [BlockEnum.ParameterExtractor]: 'parameter-extractor',
         [BlockEnum.HttpRequest]: 'http-request',
         [BlockEnum.Tool]: 'tools',
         [BlockEnum.DocExtractor]: 'doc-extractor',
         [BlockEnum.ListFilter]: 'list-operator',
-        [BlockEnum.Agent]: 'agent',
       }
     }
 
@@ -50,20 +49,14 @@
       [BlockEnum.VariableAggregator]: 'variable-aggregator',
       [BlockEnum.Assigner]: 'variable-assigner',
       [BlockEnum.Iteration]: 'iteration',
-      [BlockEnum.Loop]: 'loop',
+      [BlockEnum.IterationStart]: 'iteration',
       [BlockEnum.ParameterExtractor]: 'parameter-extractor',
       [BlockEnum.HttpRequest]: 'http-request',
       [BlockEnum.Tool]: 'tools',
       [BlockEnum.DocExtractor]: 'doc-extractor',
       [BlockEnum.ListFilter]: 'list-operator',
-      [BlockEnum.Agent]: 'agent',
     }
-  }, [language]) as Record<string, string>
+  }, [language])
 
-  const link = linkMap[nodeType]
-
-  if (!link)
-    return ''
-
-  return `${prefixLink}${link}`
+  return `${prefixLink}${linkMap[nodeType]}`
 }

--
Gitblit v1.8.0