fix: 修复工作流开始表单文案清空回退

- 保留标题和说明的显式空值

- 同步运行页与后端解析逻辑
This commit is contained in:
2026-07-21 18:53:28 +08:00
parent 4c28eaf393
commit f658f120e6
5 changed files with 38 additions and 14 deletions

View File

@@ -37,11 +37,14 @@ const submitLoading = ref(false);
const startFormMeta = computed(() => {
const meta = props.workflowParams?.startFormMeta || {};
return {
title: String(meta.title || '').trim() || props.workflowParams?.title || '',
title:
meta.title == null
? props.workflowParams?.title || ''
: String(meta.title).trim(),
description:
String(meta.description || '').trim() ||
props.workflowParams?.description ||
'',
meta.description == null
? props.workflowParams?.description || ''
: String(meta.description).trim(),
submitText: String(meta.submitText || '').trim() || $t('button.run'),
};
});