安全管理视频处理

This commit is contained in:
熊丽君
2021-12-28 18:11:34 +08:00
parent a2dcb249f7
commit ec3ec3525a
4 changed files with 94 additions and 30 deletions

18
src/utils/eventBus.js Normal file
View File

@ -0,0 +1,18 @@
// units/bus.js
const install = Vue => {
const Bus = new Vue({
methods: {
on(event, ...args) {
this.$on(event, ...args);
},
emit(event, callback) {
this.$emit(event, callback);
},
off(event, callback) {
this.$off(event, callback);
}
}
});
Vue.prototype.$bus = Bus;
};
export default install;