慕少森
eventBus 可以传递参数啊 触发组件methods: { sendMsg: function(e) { Bus.$emit('getTarget', e.target); Bus.$emit('msg', 'hello'); }监听组件created() { Bus.$on('getTarget', (target) => { console.log(target) // e.target}); Bus.$on('msg', (str) => { console.log(str) });}