feat: base 优化ticketd_b
This commit is contained in:
parent
54619a7e0c
commit
7ed3ee1c33
|
@ -45,8 +45,7 @@ watch(
|
|||
if (newVal && Object.keys(newVal).length > 0) {
|
||||
await init()
|
||||
}
|
||||
},
|
||||
{ immediate: false }
|
||||
}
|
||||
)
|
||||
const actionShow = ref(false);
|
||||
const suggestion = ref("")
|
||||
|
@ -54,7 +53,7 @@ const isOwn = ref(false)
|
|||
const init = async () => {
|
||||
transitions.value = [];
|
||||
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;
|
||||
const isParticipant =
|
||||
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
||||
|
|
Loading…
Reference in New Issue