From 23e4ad8e89fce92b02e1392c57a1ea7231ca7d80 Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Mon, 24 Jun 2024 18:10:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=83=E5=8F=98=E9=87=8F=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E6=97=B6=E7=88=B6=E6=B5=81=E7=A8=8B=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86=20--bug=3D118142098=20#=20?= =?UTF-8?q?Reviewed,=20transaction=20id:=2010438?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/template/TemplateEdit/NodeConfig/NodeConfig.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/desktop/src/pages/template/TemplateEdit/NodeConfig/NodeConfig.vue b/frontend/desktop/src/pages/template/TemplateEdit/NodeConfig/NodeConfig.vue index d5c2c70665..8479f2d09f 100644 --- a/frontend/desktop/src/pages/template/TemplateEdit/NodeConfig/NodeConfig.vue +++ b/frontend/desktop/src/pages/template/TemplateEdit/NodeConfig/NodeConfig.vue @@ -738,7 +738,7 @@ this.constantsLoading = true const variables = Object.keys(this.subflowForms) .map(key => this.subflowForms[key]) - .filter(item => item.show_type === 'show') + .filter(item => item.show_type === 'show' || item.is_meta) // meta变量特殊处理 .sort((a, b) => a.index - b.index) const inputs = await Promise.all(variables.map(async (variable) => { @@ -777,10 +777,13 @@ } }) } + if (variable.show_type === 'hide') { + return + } return formItemConfig })) this.constantsLoading = false - return inputs + return inputs.filter(item => item) }, /** * 获取任务节点基础信息数据