Newer
Older
DH_Apicture / src / bus / index.js
@zhangqy zhangqy 27 days ago 154 bytes first commit

import mitt from "mitt";
const bus = {};
const emitter = mitt();
bus.on = emitter.on;
bus.off = emitter.off;
bus.emit = emitter.emit;
export default bus