Commit 483bf23a by lizhixian

fix: 解决修改流程模型时,bpmnModel.formId为空时,调用接口报错问题

parent 5f2a6baa
......@@ -168,7 +168,8 @@ onMounted(async () => {
const bpmnModel = await getModel(props.modelId)
if (bpmnModel) {
formType.value = bpmnModel.formType
if (formType.value === 10) {
//fix 解决修改时流程模型时formId为空报错问题
if (formType.value === 10 && bpmnModel.formId) {
const bpmnForm = (await getForm(bpmnModel.formId)) as unknown as FormVO
formFields.value = bpmnForm?.fields
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment