Fix: support file download in workflow result (#11338)
This commit is contained in:
parent
a5d6082418
commit
0b25c0b677
15 changed files with 247 additions and 135 deletions
|
|
@ -26,7 +26,7 @@ import {
|
|||
import { useFeaturesStore } from '@/app/components/base/features/hooks'
|
||||
import { AudioPlayerManager } from '@/app/components/base/audio-btn/audio.player.manager'
|
||||
import {
|
||||
getProcessedFilesFromResponse,
|
||||
getFilesInLogs,
|
||||
} from '@/app/components/base/file-uploader/utils'
|
||||
|
||||
export const useWorkflowRun = () => {
|
||||
|
|
@ -213,7 +213,7 @@ export const useWorkflowRun = () => {
|
|||
draft.result = {
|
||||
...draft.result,
|
||||
...data,
|
||||
files: getProcessedFilesFromResponse(data.files || []),
|
||||
files: getFilesInLogs(data.outputs),
|
||||
} as any
|
||||
if (isStringOutput) {
|
||||
draft.resultTabActive = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue