From 26ed04e4c9318ae4372239cd73243fa5f6547271 Mon Sep 17 00:00:00 2001 From: ArvinHuang <1095369685@qq.com> Date: Wed, 30 Aug 2023 14:10:19 +0800 Subject: [PATCH] update: Port rendering for dag Signed-off-by: ArvinHuang <1095369685@qq.com> --- .../components/CanvasComponent/canvas/extra/flowDiagram.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources-front-end/src/components/CanvasComponent/canvas/extra/flowDiagram.js b/resources-front-end/src/components/CanvasComponent/canvas/extra/flowDiagram.js index c7c0e84c..97b97b8a 100644 --- a/resources-front-end/src/components/CanvasComponent/canvas/extra/flowDiagram.js +++ b/resources-front-end/src/components/CanvasComponent/canvas/extra/flowDiagram.js @@ -227,9 +227,10 @@ class DiagramInfo { for (const item of obj[name]) { const isData = item.type.match('data') const type = isData ? 'data' : 'model' + const inputType = item.type - this.linking[type] = this.linking[type] || [] - this.linking[type].push({ + this.linking[inputType] = this.linking[inputType] || [] + this.linking[inputType].push({ components: [item.component_name, name], outputType: item.up_output_info ? (type + item.up_output_info.slice(1).join('')) : (type + '0') })