Skip to content

Commit

Permalink
fix: 第三方插件执行中调用 detail 接口报错问题修复 --story=120926155
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 26577
  • Loading branch information
ywywZhou authored and luofann committed Dec 12, 2024
1 parent 4d619c3 commit 3e49c3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@
},
// 补充记录缺少的字段
async setFillRecordField (record) {
const { version, component_code: componentCode } = this.nodeDetailConfig
const { version, component_code: componentCode, componentData = {} } = this.nodeDetailConfig
const { inputs, state } = record
let outputs = record.outputs
// 执行记录的outputs可能为Object格式,需要转为Array格式
Expand Down Expand Up @@ -721,7 +721,8 @@
const keys = Object.keys(inputs)
this.renderConfig = renderConfig.filter(item => keys.includes(item.tag_code))
} else if (componentCode) { // 任务节点需要加载标准插件
await this.getNodeConfig(componentCode, version, inputs.plugin_version)
const pluginVersion = componentData.plugin_version?.value
await this.getNodeConfig(componentCode, version, pluginVersion)
}
inputsInfo = Object.keys(inputs).reduce((acc, cur) => {
const scheme = Array.isArray(this.renderConfig) ? this.renderConfig.find(item => item.tag_code === cur) : null
Expand Down

0 comments on commit 3e49c3d

Please sign in to comment.