vuejs bus.emit 2 times

// Step 1: Import the EventBus in the component where you want to emit events
import Vue from 'vue';

// Step 2: Create a new instance of Vue as an event bus
const bus = new Vue();

// Step 3: Emit the first event using bus.emit
bus.emit('firstEvent', data);

// Step 4: Emit the second event using bus.emit
bus.emit('secondEvent', data);