diff --git a/pages/wf/ticketd_b.vue b/pages/wf/ticketd_b.vue index e79239b..64a73cf 100644 --- a/pages/wf/ticketd_b.vue +++ b/pages/wf/ticketd_b.vue @@ -37,16 +37,8 @@ const workflow = ref(null); const transitions = ref([]); onMounted(async () => { await getUser() - await init() + setTimeout(()=>{init()}, 500) }) -watch( - () => props.ticket_, - async (newVal) => { - if (newVal && Object.keys(newVal).length > 0) { - await init() - } - } -) const actionShow = ref(false); const suggestion = ref("") const isOwn = ref(false) @@ -62,7 +54,7 @@ const init = async () => { actionShow.value = true; transitions.value = await API.getTransition(props.ticket_.id); } - }else if (props.workflow_key !=null && props.workflow_key != undefined) { + }else if (props.workflow_key) { let res = await API.workflowInitkey(props.workflow_key); actionShow.value = true transitions.value = res.transitions;