From 9ebf3e232ba59c39d7ed841d9a6cbe9ea681fa29 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 23 Sep 2025 15:11:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E4=BC=98=E5=8C=96ticket=5Fb=5Fs?= =?UTF-8?q?tart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wf/ticketd_b_start.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/wf/ticketd_b_start.vue b/src/views/wf/ticketd_b_start.vue index 8a1d8464..b6683c95 100644 --- a/src/views/wf/ticketd_b_start.vue +++ b/src/views/wf/ticketd_b_start.vue @@ -27,11 +27,11 @@ const props = defineProps({ const workflow = ref(null); const transitions = ref([]); onMounted(async () => { - if (props.ticketId) { + if (props.ticketId != null && props.ticketId != undefined) { API.wf.ticket.ticketTransitions.req(props.ticketId).then(res => { transitions.value = res; }); - }else if (props.workflow_key) { + }else if (props.workflow_key !=null && props.workflow_key != undefined) { let res = await API.wf.workflow.initkey.req(props.workflow_key); transitions.value = res.transitions; workflow.value = res.workflow @@ -49,7 +49,7 @@ const submit = async (transition_id) => { if (props.submit_b_func) { await props.submit_b_func(); } - if (props.ticketId != null) { + if (props.ticketId != null && props.ticketId != undefined) { let params = new Object(); params.transition = transition_id; if (props.ticket_data) {