//1.创建事件中心
var bus = new Vue({})
//组件1触发:
bus.$emit(“get-detail”,_this.details);
//组件2接收:
bus.$on(‘get-detail’, (msg) => { })
//1.创建事件中心
var bus = new Vue({})
//组件1触发:
bus.$emit(“get-detail”,_this.details);
//组件2接收:
bus.$on(‘get-detail’, (msg) => { })