From b3404694683fc8a9c807b74409fc1b442dddb3a6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 24 Nov 2025 08:54:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20base=20=E9=80=80=E5=8C=96=E4=B8=BA?= =?UTF-8?q?=E7=AD=89=E5=BE=852s=E5=90=8E=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/wf/ticketd_b.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/wf/ticketd_b.vue b/pages/wf/ticketd_b.vue index ebd4fb9..e17f5f4 100644 --- a/pages/wf/ticketd_b.vue +++ b/pages/wf/ticketd_b.vue @@ -36,17 +36,17 @@ const props = defineProps({ const workflow = ref(null); const transitions = ref([]); onMounted(async () => { - // setTimeout(()=>{init()}, 500) - await init(); - watch( - () => props.ticket_, - async (newVal) => { - if (newVal && Object.keys(newVal).length > 0) { - await init(); - } - }, - { deep: true } - ) + setTimeout(()=>{init()}, 2000) + // await init(); + // watch( + // () => props.ticket_, + // async (newVal) => { + // if (newVal && Object.keys(newVal).length > 0) { + // await init(); + // } + // }, + // { deep: true } + // ) }) const actionShow = ref(false); const suggestion = ref("") @@ -54,7 +54,7 @@ const isOwn = ref(false) const init = async () => { transitions.value = []; actionShow.value = false; - if (props.ticket_ && Object.keys(props.ticket_).length > 0) { + if (props.ticket_ && props.ticket_.id) { isOwn.value = props.ticket_.create_by === currentUser.value; const isParticipant = (props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||