79438889

Date: 2025-02-14 09:29:24
Score: 0.5
Natty:
Report link

I had find the solutions by using eventBus in vue 2 The below code should be in the addReply component and event tigger after update the status.

this.$eventBus.$emit('updateTicket')

this.$eventBus.$on('updateTicket', async () => {
        if(this.screentype == 'TICKETSSCREEN'){
            await this.getSingleticketsData({
                "operation" : "LS",
                "id" : this.ticketsId
            });
        }
    });  

Use the event on to fire the event and I am calling the get api

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rahul Ghatge