main.js中: Vue.prototype.$EventBus = new Vue(); //全局的事件总线
任何组件 2.触发全局事件 this.$EventBus.$emit("abudaren", {num: 4});
任何组件<br>3 监听事件 this.$EventBus.$on("abudaren", ({ num }) => { this.$nextTick(() => { console.log("接收到的num为:",num) }); });
https://www.cnblogs.com/bobofuns/p/12102636.html