|
|
|
@ -24,7 +24,7 @@ import {
|
|
|
|
getFilesInLogs,
|
|
|
|
getFilesInLogs,
|
|
|
|
} from '@/app/components/base/file-uploader/utils'
|
|
|
|
} from '@/app/components/base/file-uploader/utils'
|
|
|
|
|
|
|
|
|
|
|
|
export interface IResultProps {
|
|
|
|
export type IResultProps = {
|
|
|
|
isWorkflow: boolean
|
|
|
|
isWorkflow: boolean
|
|
|
|
isCallBatchAPI: boolean
|
|
|
|
isCallBatchAPI: boolean
|
|
|
|
isPC: boolean
|
|
|
|
isPC: boolean
|
|
|
|
@ -80,14 +80,14 @@ const Result: FC<IResultProps> = ({
|
|
|
|
}, [controlStopResponding])
|
|
|
|
}, [controlStopResponding])
|
|
|
|
|
|
|
|
|
|
|
|
const [completionRes, doSetCompletionRes] = useState<any>('')
|
|
|
|
const [completionRes, doSetCompletionRes] = useState<any>('')
|
|
|
|
const completionResRef = useRef<any>()
|
|
|
|
const completionResRef = useRef<any>(undefined)
|
|
|
|
const setCompletionRes = (res: any) => {
|
|
|
|
const setCompletionRes = (res: any) => {
|
|
|
|
completionResRef.current = res
|
|
|
|
completionResRef.current = res
|
|
|
|
doSetCompletionRes(res)
|
|
|
|
doSetCompletionRes(res)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const getCompletionRes = () => completionResRef.current
|
|
|
|
const getCompletionRes = () => completionResRef.current
|
|
|
|
const [workflowProcessData, doSetWorkflowProcessData] = useState<WorkflowProcess>()
|
|
|
|
const [workflowProcessData, doSetWorkflowProcessData] = useState<WorkflowProcess>()
|
|
|
|
const workflowProcessDataRef = useRef<WorkflowProcess>()
|
|
|
|
const workflowProcessDataRef = useRef<WorkflowProcess | undefined>(undefined)
|
|
|
|
const setWorkflowProcessData = (data: WorkflowProcess) => {
|
|
|
|
const setWorkflowProcessData = (data: WorkflowProcess) => {
|
|
|
|
workflowProcessDataRef.current = data
|
|
|
|
workflowProcessDataRef.current = data
|
|
|
|
doSetWorkflowProcessData(data)
|
|
|
|
doSetWorkflowProcessData(data)
|
|
|
|
|