作者:hadley朱_469 | 来源:互联网 | 2023-09-10 20:26
this.$bus.$on(modifyPatientBloodDialog, data = { this.show = data; });
this.$bus.$on('modifyPatientBloodDialog', data => {
this.show = data;
});
this.$bus.$on('saveMixResult', data => {
this.show = data;
});
this.$bus.$on('directorReview', data => {
this.show = data;
});
this.$bus.$on('review', data => {
this.show = data;
});
this.$bus.$on('openApprasierUser', data => {
this.show = data;
});
this.$bus.$on("saveBarCode", data => {
this.show = data;
});
其实我想问的是有没这种实现方式
this.$bus.$on(['modifyPatientBloodDialog','saveMixResult','directorReview','review', 'openApprasierUser','saveBarCode'], data => { this.show = data; });
vue 的文档没看见...是不是有点天真