diff --git a/src/components/SimpleProcessDesignerV2/src/node.ts b/src/components/SimpleProcessDesignerV2/src/node.ts index bc8d8a11..51a956da 100644 --- a/src/components/SimpleProcessDesignerV2/src/node.ts +++ b/src/components/SimpleProcessDesignerV2/src/node.ts @@ -108,7 +108,7 @@ export function useFormFieldsPermission(defaultPermission: FieldPermissionType) * @description 获取表单的字段 */ export function useFormFields() { - const formFields = inject>('formFields') // 流程表单字段 + const formFields = inject>('formFields',ref([])) // 流程表单字段 return parseFormCreateFields(unref(formFields)) }