through vuex, it seems that you need to create an extra state variable, and then modify the state through component A, while component B listens for changes in the state, thus realizing the transmission of events. But it feels like the value of this state variable doesn"t really make sense (after all, it"s just the action itself that works), and it"s not intuitive to go around the vuex, a little more.
through EventBus, it feels more intuitive, but sometimes I need to know which components are listening after I throw an event, so I can only search the code for the event name globally, which is inconvenient for maintenance.
ask for advice, is there a better way to solve this problem?