Skip to content

Commit 483bf23

Browse files
committed
fix: 解决修改流程模型时,bpmnModel.formId为空时,调用接口报错问题
1 parent 5f2a6ba commit 483bf23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ onMounted(async () => {
168168
const bpmnModel = await getModel(props.modelId)
169169
if (bpmnModel) {
170170
formType.value = bpmnModel.formType
171-
if (formType.value === 10) {
171+
//fix 解决修改时流程模型时formId为空报错问题
172+
if (formType.value === 10 && bpmnModel.formId) {
172173
const bpmnForm = (await getForm(bpmnModel.formId)) as unknown as FormVO
173174
formFields.value = bpmnForm?.fields
174175
}

0 commit comments

Comments
 (0)