emit传参,获取返回值
我的需求,子应用调用主应用方法,主应用返回参数。主应用:methods:{getToken(callback) { callback(this.$store.state.user.auth) },},mounted(){ this.$bus.on('getToken', this.getToken)}子应用:mounted(){this.$qkBus.emit("getToken", (token) => { alert(token); });}..