modify test run panel

This commit is contained in:
JzoNg
2024-04-02 16:57:11 +08:00
parent 5adbcacc52
commit 36c3774fac
9 changed files with 127 additions and 71 deletions

View File

@ -86,6 +86,7 @@ export const useWorkflowRun = () => {
workflowStore.setState({
workflowRunningData: undefined,
historyWorkflowData: undefined,
showInputsPanel: false,
})
}
else {
@ -155,6 +156,17 @@ export const useWorkflowRun = () => {
let prevNodeId = ''
const {
workflowRunningData,
setWorkflowRunningData,
} = workflowStore.getState()
setWorkflowRunningData(produce(workflowRunningData!, (draft) => {
draft.result = {
...draft?.result,
status: WorkflowRunningStatus.Running,
}
}))
ssePost(
url,
{