浏览代码

fix: formTypr的类型改为枚举

lizhixian 6 月之前
父节点
当前提交
a0b90bd93d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue

+ 1 - 1
src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue

@@ -168,7 +168,7 @@ onMounted(async () => {
       const bpmnModel = await getModel(props.modelId)
       if (bpmnModel) {
         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
           formFields.value = bpmnForm?.fields
         }