Compare commits
2 Commits
087bd5c50e
...
dae7fe36c4
| Author | SHA1 | Date |
|---|---|---|
|
|
dae7fe36c4 | |
|
|
3faf0fd760 |
|
|
@ -81,7 +81,7 @@ const ticketLog = ref([]);
|
|||
const ticketId = ref(null);
|
||||
onMounted(() => {
|
||||
// 立即处理初始值
|
||||
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
|
||||
if (props.ticket_ && props.ticket_.id) {
|
||||
ticketId.value = props.ticket_.id
|
||||
getTicketDetail()
|
||||
getTicketLog()
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ onMounted(async () => {
|
|||
const ticketId = ref(null);
|
||||
const actionShow = ref(false);
|
||||
const init = async () => {
|
||||
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
|
||||
if (props.ticket_ && props.ticket_.id) {
|
||||
const isParticipant =
|
||||
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
||||
(props.ticket_.participant_type === 2 && props.ticket_.participant.includes(currentUser.value))
|
||||
|
|
|
|||
Loading…
Reference in New Issue