From b0fb94e2721d841301bea5f3990d55987743bed2 Mon Sep 17 00:00:00 2001 From: lvjunzhao <967725@dms.yudean.com> Date: Wed, 23 Apr 2025 14:19:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=89=8D=E5=90=8E=E5=AE=9A=E4=B9=89=20?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E5=80=BC=E7=BD=AE=E6=8D=A2=E6=95=B0=E7=BB=84?= =?UTF-8?q?=20=E5=85=A8=E9=83=A8=E9=83=BD=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/bpmn/panel/process/globalEvent/Index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: {},