From dcd82aba7baf2a5a181f6856970708cd47e08708 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 20 Oct 2025 09:59:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=88=E7=94=A8setTimeout=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/wf/ticketd_b.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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;