Browse Source

fix: agent node help link error in zh (#16194)

tags/1.1.1
诗浓 7 months ago
parent
commit
0189a8b0f6
No account linked to committer's email address

+ 2
- 1
web/app/components/workflow/nodes/_base/hooks/use-node-help-link.ts View File

const language = useGetLanguage() const language = useGetLanguage()
const prefixLink = useMemo(() => { const prefixLink = useMemo(() => {
if (language === 'zh_Hans') if (language === 'zh_Hans')
return 'https://docs.dify.ai/v/zh-hans/guides/workflow/node/'
return 'https://docs.dify.ai/zh-hans/guides/workflow/node/'


return 'https://docs.dify.ai/guides/workflow/node/' return 'https://docs.dify.ai/guides/workflow/node/'
}, [language]) }, [language])
[BlockEnum.Tool]: 'tools', [BlockEnum.Tool]: 'tools',
[BlockEnum.DocExtractor]: 'doc-extractor', [BlockEnum.DocExtractor]: 'doc-extractor',
[BlockEnum.ListFilter]: 'list-operator', [BlockEnum.ListFilter]: 'list-operator',
[BlockEnum.Agent]: 'agent',
} }
} }



Loading…
Cancel
Save