From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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