feat: base 优化ticketd_b

This commit is contained in:
caoqianming 2025-10-20 09:44:35 +08:00
parent 54619a7e0c
commit 7ed3ee1c33
1 changed files with 4 additions and 5 deletions

View File

@ -45,8 +45,7 @@ watch(
if (newVal && Object.keys(newVal).length > 0) { if (newVal && Object.keys(newVal).length > 0) {
await init() await init()
} }
}, }
{ immediate: false }
) )
const actionShow = ref(false); const actionShow = ref(false);
const suggestion = ref("") const suggestion = ref("")
@ -54,7 +53,7 @@ const isOwn = ref(false)
const init = async () => { const init = async () => {
transitions.value = []; transitions.value = [];
actionShow.value = false; actionShow.value = false;
if (props.ticket_ != null && props.ticket_ != undefined) { if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
isOwn.value = props.ticket_.create_by === currentUser.value; isOwn.value = props.ticket_.create_by === currentUser.value;
const isParticipant = const isParticipant =
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) || (props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||