[Bug] Dependent components cannot be justified and viewed (dependent components cannot be edited and viewed) #14865 (#14868)

Co-authored-by: wanggang <wanggang1@baseus.com>
This commit is contained in:
AmriStrong 2023-09-06 21:27:51 +08:00 committed by GitHub
parent d049c668d6
commit 47471cd846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -77,15 +77,14 @@ export function useNodeStatus(options: Options) {
window.$message.success(t('project.workflow.refresh_status_succeeded'))
taskList.value = res.taskList
if (taskList.value) {
const allDependentResult = {}
taskList.value.forEach((taskInstance: any) => {
setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance)
if (taskInstance.dependentResult) {
nodeStore.updateDependentResult(
JSON.parse(taskInstance.dependentResult)
)
Object.assign(allDependentResult, JSON.parse(taskInstance.dependentResult))
}
})
nodeStore.updateDependentResult(allDependentResult)
}
})
}