diff --git a/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue b/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue index 4da074f..0035584 100644 --- a/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue +++ b/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue @@ -707,6 +707,9 @@ const columns = ref([ ]); const addGlobalStartEvent = () => { + if(!processInfo.value.globalStartEventConfigs) { + processInfo.value.globalStartEventConfigs = []; + } processInfo.value.globalStartEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -717,6 +720,9 @@ const deleteStartEvent = (index) => { processInfo.value.globalStartEventConfigs.splice(index, 1); }; const addGlobalEndEvent = () => { + if(!processInfo.value.globalEndEventConfigs) { + processInfo.value.globalEndEventConfigs = []; + } processInfo.value.globalEndEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -728,6 +734,9 @@ const deleteEndEvent = (index) => { }; const addGlobalPrequalifyBeforeEvent = () => { + if(!processInfo.value.globalPrequalifyBeforeEventConfigs) { + processInfo.value.globalPrequalifyBeforeEventConfigs = []; + } processInfo.value.globalPrequalifyBeforeEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -739,6 +748,9 @@ const deletePrequalifyBeforeEvent = (index) => { }; const addGlobalPrequalifyAfterEvent = () => { + if(!processInfo.value.globalPrequalifyAfterEventConfigs) { + processInfo.value.globalPrequalifyAfterEventConfigs = []; + } processInfo.value.globalPrequalifyAfterEventConfigs.push({ type: NodeEventExType.API, apiConfig: {},