mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 12:59:18 +08:00
fix(workflow): handle file-preview URLs in node output display (#34150)
This commit is contained in:
parent
927a17804b
commit
82f24b336d
@ -271,6 +271,7 @@ const NodePanel: FC<Props> = ({
|
||||
<div className={cn('mb-1')}>
|
||||
<CodeEditor
|
||||
readOnly
|
||||
showFileList
|
||||
title={<div>{processDataTitle}</div>}
|
||||
language={CodeLanguage.json}
|
||||
value={nodeInfo.process_data}
|
||||
@ -282,6 +283,7 @@ const NodePanel: FC<Props> = ({
|
||||
<div>
|
||||
<CodeEditor
|
||||
readOnly
|
||||
showFileList
|
||||
title={<div>{outputTitle}</div>}
|
||||
language={CodeLanguage.json}
|
||||
value={nodeInfo.outputs}
|
||||
|
||||
@ -143,6 +143,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
|
||||
{process_data && (
|
||||
<CodeEditor
|
||||
readOnly
|
||||
showFileList
|
||||
title={<div>{t('common.processData', { ns: 'workflow' }).toLocaleUpperCase()}</div>}
|
||||
language={CodeLanguage.json}
|
||||
value={process_data}
|
||||
@ -153,6 +154,7 @@ const ResultPanel: FC<ResultPanelProps> = ({
|
||||
{(outputs || status === 'running') && (
|
||||
<CodeEditor
|
||||
readOnly
|
||||
showFileList
|
||||
title={<div>{t('common.output', { ns: 'workflow' }).toLocaleUpperCase()}</div>}
|
||||
language={CodeLanguage.json}
|
||||
value={outputs}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user