Commit a0b90bd9 by lizhixian

fix: formTypr的类型改为枚举

parent 4e3522a5
...@@ -168,7 +168,7 @@ onMounted(async () => { ...@@ -168,7 +168,7 @@ onMounted(async () => {
const bpmnModel = await getModel(props.modelId) const bpmnModel = await getModel(props.modelId)
if (bpmnModel) { if (bpmnModel) {
formType.value = bpmnModel.formType formType.value = bpmnModel.formType
if (formType.value === BpmModelFormType.CUSTOM && bpmnModel.formId) { if (formType.value === BpmModelFormType.NORMAL && bpmnModel.formId) {
const bpmnForm = (await getForm(bpmnModel.formId)) as unknown as FormVO const bpmnForm = (await getForm(bpmnModel.formId)) as unknown as FormVO
formFields.value = bpmnForm?.fields 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